2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, libX11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "xkbset";
|
|
|
|
version = "0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "http://faculty.missouri.edu/~stephen/software/xkbset/xkbset-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|