13 url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage";
14 name = "Caprine-${version}.AppImage";
17 extracted = appimageTools.extractType2 { inherit pname version src; };
19 (appimageTools.wrapType2 {
20 inherit pname version src;
23 inherit pname version src;
30 extraInstallCommands = ''
32 "${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share"
33 ln -s ${extracted}/caprine.png $out/share/icons/caprine.png
34 mkdir $out/share/applications
35 cp ${extracted}/caprine.desktop $out/share/applications/
36 substituteInPlace $out/share/applications/caprine.desktop \
37 --replace AppRun caprine
40 meta = metaCommon // {
41 platforms = [ "x86_64-linux" ];