shrub/nix/nixcrpkgs/pkgs/libxfixes/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

43 lines
953 B
Nix

{ crossenv, xproto, xextproto, libx11, fixesproto }:
let
version = "5.0.3";
name = "libxfixes-${version}";
src = crossenv.nixpkgs.fetchurl {
url = "https://www.x.org/releases/individual/lib/libXfixes-${version}.tar.bz2";
sha256 = "1miana3y4hwdqdparsccmygqr3ic3hs5jrqfzp70hvi2zwxd676y";
};
lib = crossenv.make_derivation rec {
inherit version name src;
builder = ./builder.sh;
configure_flags =
"--host=${crossenv.host} " +
"--enable-static " +
"--disable-shared";
cross_inputs = [ xproto xextproto libx11 fixesproto ];
inherit xproto libx11 fixesproto;
};
license = crossenv.native.make_derivation {
name = "${name}-license";
inherit src;
builder = ./license_builder.sh;
};
license_set =
xproto.license_set //
xextproto.license_set //
libx11.license_set //
fixesproto.license_set //
{ "${name}" = license; };
in
lib // { inherit license_set; }