snipaste: add desktop entries
This commit is contained in:
parent
6306bb79b8
commit
f56bbed24b
@ -3,17 +3,26 @@
|
|||||||
lib,
|
lib,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
}:
|
}:
|
||||||
appimageTools.wrapType2 rec {
|
let
|
||||||
pname = "snipaste";
|
pname = "snipaste";
|
||||||
version = "2.10.2";
|
version = "2.10.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.snipaste.com/archives/Snipaste-${version}-x86_64.AppImage";
|
url = "https://download.snipaste.com/archives/Snipaste-${version}-x86_64.AppImage";
|
||||||
hash = "sha256-u9e2d9ZpHDbDIsFkseOdJX2Kspn9TkhFfZxbeielDA8=";
|
hash = "sha256-u9e2d9ZpHDbDIsFkseOdJX2Kspn9TkhFfZxbeielDA8=";
|
||||||
};
|
};
|
||||||
|
contents = appimageTools.extract { inherit pname version src; };
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
passthru.updateScript = ./update.sh;
|
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 = {
|
meta = {
|
||||||
description = "Screenshot tools";
|
description = "Screenshot tools";
|
||||||
homepage = "https://www.snipaste.com/";
|
homepage = "https://www.snipaste.com/";
|
||||||
|
Loading…
Reference in New Issue
Block a user