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

48 lines
1.5 KiB
Nix

{
lib,
appimageTools,
fetchurl,
version ? "0.9.9.25",
hash ? "sha256-yxZIp33lBQZebo9UyqLqtAMM9oRJ23jr0YdIcjwnimY=",
}:
let
pname = "hifile";
src = fetchurl {
url = "https://www.hifile.app/files/HiFile-${version}.AppImage";
inherit hash;
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
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=hifile'
'';
passthru.updateScript = ./update.sh;
meta = {
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";
changelog = "https://www.hifile.app/changelog";
license = lib.licenses.unfree;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ ymstnt ];
mainProgram = "hifile";
platforms = [ "x86_64-linux" ];
};
}