Make nix package properly depend on mkvtoolnix-cli
This commit is contained in:
parent
c642e25256
commit
71256b7ff4
|
@ -20,8 +20,9 @@
|
|||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
buildInputs = builtins.attrValues {
|
||||
inherit (final) installShellFiles mkvtoolnix-cli;
|
||||
inherit (final) installShellFiles;
|
||||
};
|
||||
env.mkvmerge = "${final.mkvtoolnix-cli}/bin/mkvmerge";
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd subtitle-merge \
|
||||
|
|
|
@ -111,7 +111,7 @@ fn convert_single(
|
|||
find_files(source.parent().unwrap(), OsStr::new("ttf"))?.collect::<io::Result<_>>()?
|
||||
};
|
||||
|
||||
let mut command = Command::new("mkvmerge");
|
||||
let mut command = Command::new(option_env!("mkvmerge").unwrap_or("mkvmerge"));
|
||||
command.arg("--output").args([
|
||||
output.into_os_string(),
|
||||
source.into_os_string(),
|
||||
|
|
Loading…
Reference in a new issue