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