summary refs log tree commit diff
path: root/pkgs/tools/misc/fbcat/default.nix
blob: 532d87de669f663b83bdd1b2d6aa7423b1afe3e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub } :

stdenv.mkDerivation rec {
  pname = "fbcat";
  version = "0.5.2";

  src = fetchFromGitHub {
    owner = "jwilk";
    repo = pname;
    rev = version;
    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
  '';

  meta = with lib; {
    homepage = "http://jwilk.net/software/fbcat";
    description = "Framebuffer screenshot tool";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.matthiasbeyer ];
    platforms = platforms.linux;
  };
}