nixpkgs/pkgs/by-name/hi/hifile/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.5 KiB
Nix
Raw Normal View History

2024-10-14 14:01:44 +00:00
{
lib,
appimageTools,
fetchurl,
}:
2023-10-18 19:06:55 +00:00
let
2024-10-14 14:01:44 +00:00
version = "0.9.9.15";
2023-10-18 19:06:55 +00:00
pname = "hifile";
src = fetchurl {
url = "https://www.hifile.app/files/HiFile-${version}.AppImage";
2024-10-14 14:01:44 +00:00
hash = "sha256-Q0clcmBLWt8qDzHYjRRbwyZBSWW//yBTbRcnRjrSlzM=";
2023-10-18 19:06:55 +00:00
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
2024-10-14 14:01:44 +00:00
in
appimageTools.wrapType2 rec {
2023-10-18 19:06:55 +00:00
inherit pname version src;
extraInstallCommands = ''
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-fail 'Exec=HiFile' 'Exec=${pname}'
2023-10-18 19:06:55 +00:00
'';
2024-10-14 19:58:44 +00:00
passthru.updateScript = ./update.sh;
2023-10-18 19:06:55 +00:00
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 ];
mainProgram = "hifile";
2023-10-18 19:06:55 +00:00
platforms = [ "x86_64-linux" ];
};
}