nixpkgs-suyu/pkgs/tools/misc/fpp/default.nix
R. RyanTM 13db163a94 fpp: 0.8.2 -> 0.9.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/fpp/versions
2019-09-27 17:17:06 -07:00

30 lines
776 B
Nix

{ stdenv, fetchFromGitHub, python3 }:
stdenv.mkDerivation rec {
pname = "fpp";
version = "0.9.2";
src = fetchFromGitHub {
owner = "facebook";
repo = "PathPicker";
rev = version;
sha256 = "08p2xlz045fqyb0aj9pwwf2s5nb4b02i8zj81732q59yx5c6lrlv";
};
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;
};
}