summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/X11/xkbset
diff options
context:
space:
mode:
authorDmitry Rets <dmitryrets@gmail.com>2017-03-31 23:03:57 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-04-02 02:17:30 +0300
commitc7e885ff9955da78aa273dcbdaa3ae2660c4bb49 (patch)
treeb28ccd077c59d816ce30fbccb96e04eef3ea1906 /pkgs/tools/X11/xkbset
parenta16dc1539a6f0616c3ba46bde2f8e7faeaa935a4 (diff)
xkbset: init at 0.5
Diffstat (limited to 'pkgs/tools/X11/xkbset')
-rw-r--r--pkgs/tools/X11/xkbset/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xkbset/default.nix b/pkgs/tools/X11/xkbset/default.nix
new file mode 100644
index 000000000000..e6f6622f85ac
--- /dev/null
+++ b/pkgs/tools/X11/xkbset/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl, perl, libX11 }:
+
+stdenv.mkDerivation rec {
+ name = "xkbset-0.5";
+
+ src = fetchurl {
+ url = "http://faculty.missouri.edu/~stephen/software/xkbset/${name}.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 stdenv.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;
+ };
+}