about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/fb/fbset/package.nix
blob: 7c05e4741d81a2980df3220c9a3f32cc591f255b (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
34
35
36
37
38
39
40
41
42
{ lib
, stdenv
, fetchFromGitHub
, unstableGitUpdater
, bison
, flex
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "fbset";
  version = "2.1";

  src = fetchFromGitHub {
    owner = "sudipm-mukherjee";
    repo = "fbset";
    rev = "debian/${finalAttrs.version}-33";
    hash = "sha256-nwWkQAA5+v5A8AmKg77mrSq2pXeSivxd0r7JyoBrs9A=";
  };

  nativeBuildInputs = [
    bison
    flex
  ];

  installFlags = [ "DESTDIR=$(out)" ];

  passthru = {
    updateScript = unstableGitUpdater { };
  };

  meta = with lib; {
    description = "framebuffer device maintenance program";
    # NOTE: the website of the original author disappeared, the only remaining
    # repository is maintained by the debian maintainer of the package at
    # https://github.com/sudipm-mukherjee/fbset
    homepage = "http://users.telenet.be/geertu/Linux/fbdev/";
    license = licenses.gpl2Only;
    mainProgram = "fbset";
    maintainers = with maintainers; [ baloo ];
    platforms = platforms.linux;
  };
})