2021-12-13 14:55:50 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, netpbm
|
|
|
|
}:
|
2020-12-18 23:01:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fbcat";
|
2021-09-06 09:16:28 +02:00
|
|
|
version = "0.5.2";
|
2020-12-18 23:01:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwilk";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-06 09:16:28 +02:00
|
|
|
sha256 = "sha256-ORzcd8XGy2BfwuPK5UX+K5Z+FYkb+tdg/gHl3zHjvbk=";
|
2020-12-18 23:01:48 +01:00
|
|
|
};
|
|
|
|
|
2021-12-13 14:55:50 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace fbgrab \
|
|
|
|
--replace 'pnmtopng' '${netpbm}/bin/pnmtopng' \
|
|
|
|
--replace 'fbcat' "$out/bin/fbcat"
|
2020-12-18 23:01:48 +01:00
|
|
|
'';
|
|
|
|
|
2021-12-13 14:55:50 +01:00
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-12-18 23:01:48 +01:00
|
|
|
homepage = "http://jwilk.net/software/fbcat";
|
|
|
|
description = "Framebuffer screenshot tool";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|