11 pname = "losslesscut";
14 url = "https://github.com/mifi/lossless-cut/releases/download/v${version}/LosslessCut-linux-x86_64.AppImage";
18 extracted = appimageTools.extractType2 {
19 inherit pname version src;
22 appimageTools.wrapType2 {
23 inherit pname version src;
25 nativeBuildInputs = [ makeWrapper ];
31 extraInstallCommands = ''
35 find share -mindepth 1 -type d -exec mkdir -p $out/{} \;
36 find share -mindepth 1 -type f,l -exec ln -s $PWD/{} $out/{} \;
38 ln -s ${extracted}/losslesscut.png $out/share/icons/losslesscut.png
39 mkdir $out/share/applications
40 cp ${extracted}/losslesscut.desktop $out/share/applications
41 substituteInPlace $out/share/applications/losslesscut.desktop \
42 --replace AppRun losslesscut
43 wrapProgram "$out/bin/losslesscut" \
44 --add-flags "--disable-seccomp-filter-sandbox"
47 meta = metaCommon // {
48 platforms = [ "x86_64-linux" ];
49 mainProgram = "losslesscut";