fff: 2.0 -> 2.1
This commit is contained in:
parent
b2b8696b3f
commit
27c6ca9297
|
@ -1,24 +1,26 @@
|
||||||
{ stdenv, fetchFromGitHub, makeWrapper, xdg_utils, file, coreutils }:
|
{ stdenv, fetchFromGitHub, makeWrapper, bashInteractive, xdg_utils, file, coreutils, w3m, xdotool }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fff";
|
pname = "fff";
|
||||||
version = "2.0";
|
version = "2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dylanaraps";
|
owner = "dylanaraps";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0pqxqg1gnl3kgqma5vb0wcy4n9xbm0dp7g7dxl60cwcyqvd4vm3i";
|
sha256 = "0s5gi5ghwax5gc886pvbpcmsbmzhxzywajwzjsdxwjyd1v1iynwh";
|
||||||
};
|
};
|
||||||
|
|
||||||
pathAdd = stdenv.lib.makeSearchPath "bin" [ xdg_utils file coreutils ];
|
pathAdd = stdenv.lib.makeSearchPath "bin" ([ xdg_utils file coreutils w3m xdotool ]);
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
install -D fff "$out/bin/fff"
|
buildInputs = [ bashInteractive ];
|
||||||
install -D README.md "$out/share/doc/fff/README.md"
|
dontBuild = true;
|
||||||
install -D fff.1 "$out/share/man/man1/fff.1"
|
|
||||||
wrapProgram $out/bin/fff --prefix PATH : ${pathAdd}
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$out/bin/fff" --prefix PATH : $pathAdd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue