diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-05-18 17:10:02 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-05-18 17:10:02 +0200 |
commit | f8d481754cf842ca6e6ac1427ce0f571f5a44108 (patch) | |
tree | 70e702285987429aed275e0d5e2dc15c050e1f8c /pkgs/tools/misc/fpp/default.nix | |
parent | 9fbc20e2f89bc045efac7ade41949a2c2d571dec (diff) | |
parent | 3cd63ade1614d4c581735ffb0cebe181bf87dfc8 (diff) | |
download | nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar.gz nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar.bz2 nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar.lz nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar.xz nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.tar.zst nixlib-f8d481754cf842ca6e6ac1427ce0f571f5a44108.zip |
Merge remote-tracking branch 'origin/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/misc/fpp/default.nix')
-rw-r--r-- | pkgs/tools/misc/fpp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fpp/default.nix b/pkgs/tools/misc/fpp/default.nix new file mode 100644 index 000000000000..5261035b35c5 --- /dev/null +++ b/pkgs/tools/misc/fpp/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, python27Full }: + +stdenv.mkDerivation rec { + name = "fpp-${version}"; + version = "0.7.1"; + + src = fetchFromGitHub { + owner = "facebook"; + repo = "PathPicker"; + rev = version; + sha256 = "1mfyr9k5s3l1sg3c9vlyiqg8n1wwppzb981az2xaxqyk95wwl1sa"; + }; + + postPatch = '' + substituteInPlace fpp --replace 'PYTHONCMD="python"' 'PYTHONCMD="${python27Full.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; + }; +} |