diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/fpp')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/fpp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/fpp/default.nix b/nixpkgs/pkgs/tools/misc/fpp/default.nix new file mode 100644 index 000000000000..8b7c2b430882 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/fpp/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, python3 }: + +stdenv.mkDerivation rec { + name = "fpp-${version}"; + version = "0.8.2"; + + src = fetchFromGitHub { + owner = "facebook"; + repo = "PathPicker"; + rev = version; + sha256 = "00916xx4scd4xr9zxqkyhilczi27f2qm5y042592wr79ddix4n9v"; + }; + + postPatch = '' + substituteInPlace fpp --replace 'PYTHONCMD="python"' 'PYTHONCMD="${python3.interpreter}"' + ''; + + installPhase = '' + mkdir -p $out/share/fpp $out/bin + cp -r fpp src $out/share/fpp + ln -s $out/share/fpp/fpp $out/bin/fpp + ''; + + meta = { + description = "CLI program that accepts piped input and presents files for selection"; + homepage = https://facebook.github.io/PathPicker/; + license = stdenv.lib.licenses.bsd3; + platforms = stdenv.lib.platforms.all; + }; +} |