urbit/nix/nixcrpkgs/pkgs/libx11/default.nix
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

56 lines
1.2 KiB
Nix

{ crossenv, xorg-macros, xproto, libxcb, xtrans,
xextproto, inputproto, kbproto }:
let
version = "1.6.5";
name = "libx11-${version}";
src = crossenv.nixpkgs.fetchurl {
url = "https://xorg.freedesktop.org/releases/individual/libX11-${version}.tar.bz2";
sha256 = "0pa3cfp6h9rl2vxmkph65250gfqyki0ccqyaan6bl9d25gdr0f2d";
};
lib = crossenv.make_derivation rec {
inherit version name src;
builder = ./builder.sh;
configure_flags =
"--host=${crossenv.host} " +
"--disable-malloc0returnsnull " +
"--enable-static " +
"--disable-shared";
cross_inputs = [
xorg-macros
xproto
libxcb
xtrans
xextproto
inputproto
kbproto
];
inherit kbproto xproto libxcb;
};
license = crossenv.native.make_derivation {
name = "${name}-license";
inherit src;
builder = ./license_builder.sh;
};
license_set =
xorg-macros.license_set //
xproto.license_set //
libxcb.license_set //
xtrans.license_set //
xextproto.license_set //
inputproto.license_set //
kbproto.license_set //
{ "${name}" = license; };
in
lib // { inherit license_set; }