9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
33 lines
927 B
Nix
33 lines
927 B
Nix
{ stdenv, fetchurl, pkg-config, yacc, flex, xkeyboard_config, libxcb, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libxkbcommon-0.7.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://xkbcommon.org/download/${name}.tar.xz";
|
|
sha256 = "1n5rv5n210kjnkyrvbh04gfwaa7zrmzy1393p8nyqfw66lkxr918";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ yacc flex xkeyboard_config libxcb ];
|
|
|
|
configureFlags = [
|
|
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
|
"--with-x-locale-root=${libX11.out}/share/X11/locale"
|
|
];
|
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
sed -i 's/,--version-script=.*$//' Makefile
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A library to handle keyboard descriptions";
|
|
homepage = "https://xkbcommon.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|