Merge pull request #274845 from kashw2/parsify

parsify: init at 2.0.1
This commit is contained in:
Mario Rodas 2024-01-28 07:27:28 -05:00 committed by GitHub
commit f58fe0f36d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,36 @@
{ lib
, appimageTools
, fetchurl
}:
appimageTools.wrapType2 rec {
pname = "parsify";
version = "2.0.1";
src = fetchurl {
url = "https://github.com/parsify-dev/desktop/releases/download/v${version}/Parsify-${version}-linux-x86_64.AppImage";
hash = "sha256-ltWqRW+cBvuUJzhya62WsBY5zqIua9xhilxfd9gr24A=";
};
extraInstallCommands =
let contents = appimageTools.extract { inherit pname version src; };
in ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${contents}/@parsifydesktop.desktop -t $out/share/applications
substituteInPlace $out/share/applications/@parsifydesktop.desktop \
--replace "Exec=AppRun" "Exec=${pname}"
cp -r ${contents}/usr/share/* $out/share
'';
meta = with lib; {
description = "Next generation notepad-based calculator, built with extendibility and privacy in mind";
homepage = "https://parsify.app/";
license = licenses.unfree;
maintainers = with maintainers; [ kashw2 ];
platforms = platforms.linux;
mainProgram = "parsify";
};
}