shrub/nix/nixcrpkgs/pkgs/kbproto/default.nix

28 lines
604 B
Nix
Raw Normal View History

{ 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; }