2021-02-01 08:05:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, bashInteractive, xdg-utils, file, coreutils, w3m, xdotool }:
|
2019-01-20 22:17:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-27 17:00:00 +00:00
|
|
|
pname = "fff";
|
2020-09-25 07:32:31 +01:00
|
|
|
version = "2.2";
|
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;
|
2020-09-25 07:32:31 +01:00
|
|
|
sha256 = "14ymdw6l6phnil0xf1frd5kgznaiwppcic0v4hb61s1zpf4wrshg";
|
2019-01-20 22:17:15 +00:00
|
|
|
};
|
|
|
|
|
2021-02-01 08:05:09 +00:00
|
|
|
pathAdd = lib.makeSearchPath "bin" ([ xdg-utils file coreutils w3m xdotool ]);
|
2019-01-20 22:17:15 +00:00
|
|
|
|
2019-02-05 03:57:03 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ bashInteractive ];
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/fff" --prefix PATH : $pathAdd
|
2019-01-20 22:17:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-20 22:17:15 +00:00
|
|
|
description = "Fucking Fast File-Manager";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dylanaraps/fff";
|
2019-01-20 22:17:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|