nixpkgs/pkgs/development/tools/cue/default.nix

28 lines
737 B
Nix
Raw Normal View History

2019-07-06 07:40:02 +00:00
{ buildGoModule, fetchgit, stdenv }:
buildGoModule rec {
pname = "cue";
2019-09-13 14:43:01 +00:00
version = "0.0.11";
2019-07-06 07:40:02 +00:00
src = fetchgit {
url = "https://cue.googlesource.com/cue";
rev = "v${version}";
2019-09-13 14:43:01 +00:00
sha256 = "146h3nxx72n3byxr854lnxj7m33ipbmg6j9dy6dlwvqpa7rndrmp";
2019-07-06 07:40:02 +00:00
};
2019-09-13 14:43:01 +00:00
modSha256 = "1q0fjm34mbijjxg089v5330vc820nrvwdkhm02zi45rk2fpdgdqd";
2019-07-06 07:40:02 +00:00
subPackages = [ "cmd/cue" ];
buildFlagsArray = [
"-ldflags=-X cuelang.org/go/cmd/cue/cmd.version=${version}"
];
meta = {
description = "A data constraint language which aims to simplify tasks involving defining and using data.";
homepage = https://cue.googlesource.com/cue;
maintainers = with stdenv.lib.maintainers; [ solson ];
license = stdenv.lib.licenses.asl20;
};
}