nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 925 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 bashInteractive, 7 xdg-utils, 8 file, 9 coreutils, 10 w3m, 11 xdotool, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "fff"; 16 version = "2.2"; 17 18 src = fetchFromGitHub { 19 owner = "dylanaraps"; 20 repo = "fff"; 21 rev = finalAttrs.version; 22 sha256 = "14ymdw6l6phnil0xf1frd5kgznaiwppcic0v4hb61s1zpf4wrshg"; 23 }; 24 25 pathAdd = lib.makeSearchPath "bin" [ 26 xdg-utils 27 file 28 coreutils 29 w3m 30 xdotool 31 ]; 32 33 nativeBuildInputs = [ makeWrapper ]; 34 buildInputs = [ bashInteractive ]; 35 dontBuild = true; 36 37 makeFlags = [ "PREFIX=$(out)" ]; 38 39 postInstall = '' 40 wrapProgram "$out/bin/fff" --prefix PATH : $pathAdd 41 ''; 42 43 meta = { 44 description = "Fucking Fast File-Manager"; 45 mainProgram = "fff"; 46 homepage = "https://github.com/dylanaraps/fff"; 47 license = lib.licenses.mit; 48 maintainers = [ ]; 49 platforms = lib.platforms.all; 50 }; 51})