urbit/nix/nixcrpkgs/pkgs/libxau/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

41 lines
840 B
Nix

{ crossenv, xorg-macros, xproto }:
let
version = "1.0.8";
name = "libxau-${version}";
src = crossenv.nixpkgs.fetchurl {
url = "https://www.x.org/archive/individual/lib/libXau-${version}.tar.bz2";
sha256 = "1wm4pv12f36cwzhldpp7vy3lhm3xdcnp4f184xkxsp7b18r7gm7x";
};
lib = crossenv.make_derivation rec {
inherit version name src;
builder = ./builder.sh;
configure_flags =
"--host=${crossenv.host} " +
"--enable-static " +
"--disable-shared";
cross_inputs = [ xorg-macros xproto ];
inherit xproto;
};
license = crossenv.native.make_derivation {
name = "${name}-license";
inherit src;
builder = ./license_builder.sh;
};
license_set =
xorg-macros.license_set //
xproto.license_set //
{ "${name}" = license; };
in
lib // { inherit license_set; }