Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{
|
|
appimageTools,
|
|
lib,
|
|
fetchurl,
|
|
}:
|
|
let
|
|
pname = "snipaste";
|
|
version = "2.10.8";
|
|
src = fetchurl {
|
|
url = "https://download.snipaste.com/archives/Snipaste-${version}-x86_64.AppImage";
|
|
hash = "sha256-Ieitxc1HPjqBpf7/rREKca+U0srE+q/s8mz+9Vhczk0=";
|
|
};
|
|
contents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
extraInstallCommands = ''
|
|
install -d $out/share/{applications,icons}
|
|
cp ${contents}/usr/share/applications/*.desktop -t $out/share/applications/
|
|
cp -r ${contents}/usr/share/icons/* -t $out/share/icons/
|
|
substituteInPlace $out/share/applications/*.desktop --replace-warn 'Exec=Snipaste' 'Exec=${pname}'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Screenshot tools";
|
|
homepage = "https://www.snipaste.com/";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [
|
|
luftmensch-luftmensch
|
|
ltrump
|
|
];
|
|
mainProgram = "snipaste";
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
};
|
|
}
|