mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
39 lines
821 B
Nix
39 lines
821 B
Nix
{ 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;
|
|
mainProgram = "shfm";
|
|
};
|
|
}
|