mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
985aa8174d
`appimageTools.wrapType2` no longer creates a binary `$out/bin/${name}` if `pname` and `version` is provided. Derivations that have worked around this behavior with a `mv $out/bin/{${name},${pname}}` broke as a result. This should fix most instances. contex: #271071
40 lines
1.4 KiB
Nix
40 lines
1.4 KiB
Nix
{ lib, appimageTools, fetchurl }:
|
|
|
|
let
|
|
version = "0.9.9.11";
|
|
pname = "hifile";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.hifile.app/files/HiFile-${version}.AppImage";
|
|
hash = "sha256-T/ig5Tfo58+yMp+kOEa96+QvABg6gTaIbdy53jWucvM=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname version src;
|
|
};
|
|
|
|
in appimageTools.wrapType2 rec {
|
|
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}'
|
|
'';
|
|
|
|
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";
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|