initial commit
This commit is contained in:
25
package.nix
Normal file
25
package.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ appimageTools, fetchurl }:
|
||||
|
||||
let
|
||||
pname = "altersend";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/denislupookov/altersend/releases/download/v2.0.0/AlterSend-x86_64.AppImage";
|
||||
hash = "sha256-dMsFocrGSXZ8CVN6pFdGeRTApHpvwhSRW3jA6Rp6Pdo=";
|
||||
};
|
||||
|
||||
# Unpack the AppImage so we can grab its .desktop file and icon
|
||||
extracted = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 ${extracted}/*.desktop -t $out/share/applications
|
||||
install -Dm444 ${extracted}/usr/share/icons/hicolor/256x256@2/apps/*.png \
|
||||
-t $out/share/icons/hicolor/256x256/apps || true
|
||||
substituteInPlace $out/share/applications/*.desktop \
|
||||
--replace-quiet 'Exec=AppRun' 'Exec=${pname}'
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user