diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-01-28 07:27:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 07:27:28 -0500 |
commit | f58fe0f36dbbef39b3f5ec8542a02dece7c9559b (patch) | |
tree | 898b727f7a611aa3f6f9d86aaf65ad964c578d68 /pkgs/by-name/pa | |
parent | 05a261d110463a9a58f14e3855a382c49916210b (diff) | |
parent | b5162bfa84e012181547a8dfc0ff12b27a20aec9 (diff) |
Merge pull request #274845 from kashw2/parsify
parsify: init at 2.0.1
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/parsify/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/parsify/package.nix b/pkgs/by-name/pa/parsify/package.nix new file mode 100644 index 0000000000000..b02c6c3ae0a41 --- /dev/null +++ b/pkgs/by-name/pa/parsify/package.nix @@ -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"; + }; +} |