summary refs log tree commit diff
path: root/pkgs/tools/X11/xkbset/default.nix
blob: 31bcfc10d6d4028a69bfafadbe54211df677d185 (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
{ lib, stdenv, fetchurl, perl, libX11 }:

stdenv.mkDerivation rec {
  pname = "xkbset";
  version = "0.5";

  src = fetchurl {
    url = "http://faculty.missouri.edu/~stephen/software/xkbset/xkbset-${version}.tar.gz";
    sha256 = "01c2579495b39e00d870f50225c441888dc88021e9ee3b693a842dd72554d172";
  };

  buildInputs = [ perl libX11 ];

  postPatch = ''
    sed "s:^X11PREFIX=.*:X11PREFIX=$out:" -i Makefile
  '';

  preInstall = ''
    mkdir -p $out/bin
    mkdir -p $out/man/man1
  '';

  postInstall = ''
    rm -f $out/bin/xkbset-gui
  '';

  meta = with lib; {
    homepage = "http://faculty.missouri.edu/~stephen/software/#xkbset";
    description = "Program to help manage many of XKB features of X window";
    maintainers = with maintainers; [ drets ];
    platforms = platforms.linux;
    license = licenses.bsd3;
  };
}