Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
921 B
Nix
41 lines
921 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3,
|
|
installShellFiles,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fpp";
|
|
version = "0.9.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "PathPicker";
|
|
rev = version;
|
|
sha256 = "sha256-4BkdGvG/RyF3JBnd/X5r5nboEHG4aqahcYHDunMv2zU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace fpp --replace 'PYTHONCMD="python3"' '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
|
|
installManPage debian/usr/share/man/man1/fpp.1
|
|
'';
|
|
|
|
meta = {
|
|
description = "CLI program that accepts piped input and presents files for selection";
|
|
homepage = "https://facebook.github.io/PathPicker/";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "fpp";
|
|
};
|
|
}
|