depot/third_party/nixpkgs/pkgs/tools/X11/xkbset/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
809 B
Nix

{ 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;
};
}