2016-10-13 22:11:30 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python27 }:
|
2016-05-15 01:07:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fpp-${version}";
|
|
|
|
version = "0.7.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "PathPicker";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1mfyr9k5s3l1sg3c9vlyiqg8n1wwppzb981az2xaxqyk95wwl1sa";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2016-10-13 22:11:30 +02:00
|
|
|
substituteInPlace fpp --replace 'PYTHONCMD="python"' 'PYTHONCMD="${python27.interpreter}"'
|
2016-05-15 01:07:18 +02: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;
|
|
|
|
};
|
|
|
|
}
|