nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 942 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6 installShellFiles, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "fpp"; 11 version = "0.9.5"; 12 13 src = fetchFromGitHub { 14 owner = "facebook"; 15 repo = "PathPicker"; 16 rev = finalAttrs.version; 17 sha256 = "sha256-4BkdGvG/RyF3JBnd/X5r5nboEHG4aqahcYHDunMv2zU="; 18 }; 19 20 nativeBuildInputs = [ installShellFiles ]; 21 22 postPatch = '' 23 substituteInPlace fpp --replace 'PYTHONCMD="python3"' 'PYTHONCMD="${python3.interpreter}"' 24 ''; 25 26 installPhase = '' 27 mkdir -p $out/share/fpp $out/bin 28 cp -r fpp src $out/share/fpp 29 ln -s $out/share/fpp/fpp $out/bin/fpp 30 installManPage debian/usr/share/man/man1/fpp.1 31 ''; 32 33 meta = { 34 description = "CLI program that accepts piped input and presents files for selection"; 35 homepage = "https://facebook.github.io/PathPicker/"; 36 license = lib.licenses.bsd3; 37 platforms = lib.platforms.all; 38 mainProgram = "fpp"; 39 }; 40})