2016-10-13 20:11:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python27 }:
|
2016-05-14 23:07:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fpp-${version}";
|
2018-01-07 10:58:52 +00:00
|
|
|
version = "0.7.2";
|
2016-05-14 23:07:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "PathPicker";
|
|
|
|
rev = version;
|
2018-01-07 10:58:52 +00:00
|
|
|
sha256 = "03n8sc2fvs2vk46jv6qfkjbyqz85yxnphvabji7qnmd3jv631w47";
|
2016-05-14 23:07:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2016-10-13 20:11:30 +00:00
|
|
|
substituteInPlace fpp --replace 'PYTHONCMD="python"' 'PYTHONCMD="${python27.interpreter}"'
|
2016-05-14 23:07:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|