My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/file-managers/shfm/default.nix

38 lines
795 B

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "shfm";
version = "0.4.2";
src = fetchFromGitHub {
owner = "dylanaraps";
repo = pname;
rev = version;
hash = "sha256-ilVrUFfyzOZgjbBTqlHA9hLaTHw1xHFo1Y/tjXygNEs=";
};
postPatch = ''
patchShebangs ./shfm
'';
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -D shfm --target-directory $out/bin/
install -D README --target-directory $out/share/doc/${pname}/
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/dylanaraps/shfm";
description = "POSIX-shell based file manager";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.all;
};
}