12 stdenvNoCC.mkDerivation {
13 inherit pname version;
16 url = "https://github.com/mifi/lossless-cut/releases/download/v${version}/LosslessCut-win-x64.7z";
20 nativeBuildInputs = [ p7zip ];
24 7z x "$src" -o"$sourceRoot"
28 sourceRoot = "LosslessCut-win-x64";
32 mkdir -p "$out/bin" "$out/libexec"
34 mv "$sourceRoot" "$out/libexec"
35 ln -s "$out/libexec/$(basename "$sourceRoot")/LosslessCut.exe" "$out/bin/LosslessCut.exe"
42 platforms = platforms.windows;
43 mainProgram = "LosslessCut.exe";