34 lines
874 B
Nix
Raw Normal View History

2019-02-04 20:57:03 -07:00
{ stdenv, fetchFromGitHub, makeWrapper, bashInteractive, xdg_utils, file, coreutils, w3m, xdotool }:
2019-01-20 15:17:15 -07:00
stdenv.mkDerivation rec {
2019-01-27 19:00:00 +02:00
pname = "fff";
2019-02-04 20:57:03 -07:00
version = "2.1";
2019-01-20 15:17:15 -07:00
src = fetchFromGitHub {
owner = "dylanaraps";
2019-01-27 19:00:00 +02:00
repo = pname;
2019-01-20 15:17:15 -07:00
rev = version;
2019-02-04 20:57:03 -07:00
sha256 = "0s5gi5ghwax5gc886pvbpcmsbmzhxzywajwzjsdxwjyd1v1iynwh";
2019-01-20 15:17:15 -07:00
};
2019-02-04 20:57:03 -07:00
pathAdd = stdenv.lib.makeSearchPath "bin" ([ xdg_utils file coreutils w3m xdotool ]);
2019-01-20 15:17:15 -07:00
2019-02-04 20:57:03 -07:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bashInteractive ];
dontBuild = true;
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram "$out/bin/fff" --prefix PATH : $pathAdd
2019-01-20 15:17:15 -07:00
'';
meta = with stdenv.lib; {
description = "Fucking Fast File-Manager";
homepage = "https://github.com/dylanaraps/fff";
2019-01-20 15:17:15 -07:00
license = licenses.mit;
maintainers = [ maintainers.tadeokondrak ];
platforms = platforms.all;
};
}