nixpkgs/pkgs/applications/misc/fff/default.nix

32 lines
867 B
Nix
Raw Normal View History

2019-01-20 22:17:15 +00:00
{ stdenv, fetchFromGitHub, makeWrapper, xdg_utils, file, coreutils }:
stdenv.mkDerivation rec {
2019-01-27 17:00:00 +00:00
pname = "fff";
2019-01-28 18:08:21 +00:00
version = "1.8";
2019-01-20 22:17:15 +00:00
src = fetchFromGitHub {
owner = "dylanaraps";
2019-01-27 17:00:00 +00:00
repo = pname;
2019-01-20 22:17:15 +00:00
rev = version;
2019-01-28 18:08:21 +00:00
sha256 = "1xwvycxyk34c5szhil5d1iby449fdahdgmpibn6raglkbkwfk7a1";
2019-01-20 22:17:15 +00:00
};
pathAdd = stdenv.lib.makeSearchPath "bin" [ xdg_utils file coreutils ];
buildInputs = [ makeWrapper ];
installPhase = ''
install -D fff "$out/bin/fff"
install -D README.md "$out/share/doc/fff/README.md"
install -D fff.1 "$out/share/man/man1/fff.1"
wrapProgram $out/bin/fff --prefix PATH : ${pathAdd}
'';
meta = with stdenv.lib; {
description = "Fucking Fast File-Manager";
homepage = https://github.com/dylanaraps/fff;
license = licenses.mit;
maintainers = [ maintainers.tadeokondrak ];
platforms = platforms.all;
};
}