initial commit

This commit is contained in:
2026-10-18 12:50:38 -04:00
commit 086e8e11b9
4 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
result

2
README.md Normal file
View 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
View File

@@ -0,0 +1,2 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.callPackage ./package.nix {}

25
package.nix Normal file
View 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}'
'';
}