mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 09:32:29 +03:00
44 lines
929 B
Nix
44 lines
929 B
Nix
|
{ crossenv, xproto, libx11, xextproto }:
|
||
|
|
||
|
let
|
||
|
version = "1.3.3";
|
||
|
|
||
|
name = "libxext-${version}";
|
||
|
|
||
|
src = crossenv.nixpkgs.fetchurl {
|
||
|
url = "https://www.x.org/releases/individual/lib/libXext-${version}.tar.bz2";
|
||
|
sha256 = "0dbfn5bznnrhqzvkrcmw4c44yvvpwdcsrvzxf4rk27r36b9x865m";
|
||
|
};
|
||
|
|
||
|
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 = [ xproto libx11 xextproto ];
|
||
|
|
||
|
inherit xextproto libx11;
|
||
|
};
|
||
|
|
||
|
license = crossenv.native.make_derivation {
|
||
|
name = "${name}-license";
|
||
|
inherit src;
|
||
|
builder = ./license_builder.sh;
|
||
|
};
|
||
|
|
||
|
license_set =
|
||
|
xproto.license_set //
|
||
|
libx11.license_set //
|
||
|
xextproto.license_set //
|
||
|
{ "${name}" = license; };
|
||
|
|
||
|
in
|
||
|
lib // { inherit license_set; }
|
||
|
|