initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
result
|
||||||
2
README.md
Normal file
2
README.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Altersend Nix Package
|
||||||
|
This is a repo to convert the AppImage into a nixpkg for nix systems.
|
||||||
2
default.nix
Normal file
2
default.nix
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
pkgs.callPackage ./package.nix {}
|
||||||
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