diff options
| author | OPNA2608 <christoph.neidahl@gmail.com> | 2021-12-13 14:55:50 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-12-18 10:52:19 +0000 |
| commit | 797518689d41f7a43ad87661ea9b46df243a7dc1 (patch) | |
| tree | fee028ae4a34a06c88360cede8dc3a96b56a424a | |
| parent | Merge pull request #151172 from NixOS/backport-151150-to-release-21.11 (diff) | |
| download | nixpkgs-797518689d41f7a43ad87661ea9b46df243a7dc1.tar.gz | |
fbcat: small refactor, fix fbgrab dependencies
(cherry picked from commit fa5eb09a66824951d2066ba34125602c65513f9b)
| -rw-r--r-- | pkgs/tools/misc/fbcat/default.nix | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/tools/misc/fbcat/default.nix b/pkgs/tools/misc/fbcat/default.nix index 532d87de669f..d90ec77b6d5e 100644 --- a/pkgs/tools/misc/fbcat/default.nix +++ b/pkgs/tools/misc/fbcat/default.nix @@ -1,4 +1,8 @@ -{ lib, stdenv, fetchFromGitHub } : +{ lib +, stdenv +, fetchFromGitHub +, netpbm +}: stdenv.mkDerivation rec { pname = "fbcat"; @@ -11,17 +15,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-ORzcd8XGy2BfwuPK5UX+K5Z+FYkb+tdg/gHl3zHjvbk="; }; - # hardcoded because makefile target "install" depends on libxslt dependencies from network - # that are just too hard to monkeypatch here - # so this is the simple fix. - installPhase = '' - mkdir -p $out - install -d $out/bin - install -m755 fbcat $out/bin/ - install -m755 fbgrab $out/bin/ - install -d $out/share/man/man1 + postPatch = '' + substituteInPlace fbgrab \ + --replace 'pnmtopng' '${netpbm}/bin/pnmtopng' \ + --replace 'fbcat' "$out/bin/fbcat" ''; + installFlags = [ + "PREFIX=${placeholder "out"}" + ]; + meta = with lib; { homepage = "http://jwilk.net/software/fbcat"; description = "Framebuffer screenshot tool"; |
