diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-10-21 17:25:23 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-10-21 17:25:23 +0000 |
commit | 2a87a287685e127797106ffe684015a2371729fd (patch) | |
tree | 86f3180cc4eea397d9741a530593682404e94627 /nixpkgs/pkgs/by-name/hi | |
parent | 53533fd13b70e6e78e9a63c7dad027b116335a2d (diff) | |
parent | 83b8726e5f6f85a28405c7772f75093fd9a399a3 (diff) | |
download | nixlib-2a87a287685e127797106ffe684015a2371729fd.tar nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.gz nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.bz2 nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.lz nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.xz nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.zst nixlib-2a87a287685e127797106ffe684015a2371729fd.zip |
Merge commit '83b8726e5f6f85a28405c7772f75093fd9a399a3'
Diffstat (limited to 'nixpkgs/pkgs/by-name/hi')
-rw-r--r-- | nixpkgs/pkgs/by-name/hi/hifile/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/hi/hifile/package.nix b/nixpkgs/pkgs/by-name/hi/hifile/package.nix new file mode 100644 index 000000000000..bf2bda5100dc --- /dev/null +++ b/nixpkgs/pkgs/by-name/hi/hifile/package.nix @@ -0,0 +1,41 @@ +{ lib, appimageTools, fetchurl }: + +let + version = "0.9.9.5"; + pname = "hifile"; + + src = fetchurl { + url = "https://www.hifile.app/files/HiFile-${version}.AppImage"; + hash = "sha256-Ks/NLPm5loo9q8pT0LdtfcrC38203beNE74sbEpyuJM="; + }; + + appimageContents = appimageTools.extractType2 { + inherit pname version src; + }; + +in +appimageTools.wrapType2 rec { + inherit pname version src; + + extraInstallCommands = '' + mv $out/bin/${pname}-${version} $out/bin/${pname} + + install -m 444 -D ${appimageContents}/HiFile.desktop $out/share/applications/HiFile.desktop + install -m 444 -D ${appimageContents}/HiFile.png $out/share/icons/hicolor/512x512/apps/HiFile.png + substituteInPlace $out/share/applications/HiFile.desktop \ + --replace 'Exec=HiFile' 'Exec=${pname}' + ''; + + meta = with lib; { + description = "Dual-pane graphical file manager for Windows, macOS and Linux"; + longDescription = '' + HiFile is the next evolution of file managers. Its mission is to increase your productivity whenever you work with files or folders. It aims to be better in every way - more convenient, more versatile, more efficient, more elegant, more customizable, and more fun. + ''; + homepage = "https://www.hifile.app/"; + downloadPage = "https://www.hifile.app/download"; + license = licenses.unfree; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + maintainers = with maintainers; [ ymstnt ]; + platforms = [ "x86_64-linux" ]; + }; +} |