2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub } :
|
2020-12-18 22:01:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fbcat";
|
2021-09-06 07:16:28 +00:00
|
|
|
version = "0.5.2";
|
2020-12-18 22:01:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwilk";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-06 07:16:28 +00:00
|
|
|
sha256 = "sha256-ORzcd8XGy2BfwuPK5UX+K5Z+FYkb+tdg/gHl3zHjvbk=";
|
2020-12-18 22:01:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-18 22:01:48 +00:00
|
|
|
homepage = "http://jwilk.net/software/fbcat";
|
|
|
|
description = "Framebuffer screenshot tool";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|