2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, libX11 }:
|
2017-03-31 21:03:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-27 18:35:11 +01:00
|
|
|
pname = "xkbset";
|
2021-08-14 07:14:04 +01:00
|
|
|
version = "0.6";
|
2017-03-31 21:03:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-27 18:35:11 +01:00
|
|
|
url = "http://faculty.missouri.edu/~stephen/software/xkbset/xkbset-${version}.tar.gz";
|
2021-08-14 07:14:04 +01:00
|
|
|
sha256 = "sha256-rAMv7EnExPDyMY0/RhiXDFFBkbFC4GxRpmH+I0KlNaU=";
|
2017-03-31 21:03:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-31 21:03:57 +01: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;
|
|
|
|
};
|
|
|
|
}
|