2019-08-20 19:12:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3 }:
|
2016-05-15 00:07:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fpp";
|
2019-09-28 01:17:06 +01:00
|
|
|
version = "0.9.2";
|
2016-05-15 00:07:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "PathPicker";
|
|
|
|
rev = version;
|
2019-09-28 01:17:06 +01:00
|
|
|
sha256 = "08p2xlz045fqyb0aj9pwwf2s5nb4b02i8zj81732q59yx5c6lrlv";
|
2016-05-15 00:07:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-08-20 19:12:53 +01:00
|
|
|
substituteInPlace fpp --replace 'PYTHONCMD="python"' 'PYTHONCMD="${python3.interpreter}"'
|
2016-05-15 00:07:18 +01: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://facebook.github.io/PathPicker/";
|
2016-05-15 00:07:18 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|