11 stdenvNoCC.mkDerivation {
12 inherit pname version;
15 url = "https://github.com/mifi/lossless-cut/releases/download/v${version}/LosslessCut-win-x64.7z";
19 nativeBuildInputs = [ p7zip ];
23 7z x "$src" -o"$sourceRoot"
27 sourceRoot = "LosslessCut-win-x64";
31 mkdir -p "$out/bin" "$out/libexec"
33 mv "$sourceRoot" "$out/libexec"
34 ln -s "$out/libexec/$(basename "$sourceRoot")/LosslessCut.exe" "$out/bin/LosslessCut.exe"
38 meta = metaCommon // (with lib; {
39 platforms = platforms.windows;
40 mainProgram = "LosslessCut.exe";