mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 11:09:30 +03:00
28 lines
604 B
Nix
28 lines
604 B
Nix
|
{ crossenv }:
|
||
|
|
||
|
let
|
||
|
version = "1.0.7";
|
||
|
|
||
|
name = "kbproto-${version}";
|
||
|
|
||
|
src = crossenv.nixpkgs.fetchurl {
|
||
|
url = "https://xorg.freedesktop.org/releases/individual/proto/kbproto-${version}.tar.bz2";
|
||
|
sha256 = "0mxqj1pzhjpz9495vrjnpi10kv2n1s4vs7di0sh3yvipfq5j30pq";
|
||
|
};
|
||
|
|
||
|
lib = crossenv.native.make_derivation rec {
|
||
|
inherit version name src;
|
||
|
builder = ./builder.sh;
|
||
|
};
|
||
|
|
||
|
license = crossenv.native.make_derivation {
|
||
|
name = "${name}-license";
|
||
|
inherit src;
|
||
|
builder = ./license_builder.sh;
|
||
|
};
|
||
|
|
||
|
license_set = { "${name}" = license; };
|
||
|
|
||
|
in
|
||
|
lib // { inherit license_set; }
|