2022-01-18 12:33:52 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-07-06 07:40:02 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cue";
|
2022-02-12 13:39:18 +00:00
|
|
|
version = "0.4.2";
|
2019-07-06 07:40:02 +00:00
|
|
|
|
2022-01-18 12:33:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cue-lang";
|
|
|
|
repo = "cue";
|
2019-07-06 07:40:02 +00:00
|
|
|
rev = "v${version}";
|
2022-02-12 13:39:18 +00:00
|
|
|
sha256 = "sha256-6HD3wcBo21Dep4ckx+oDWAC4nuTvCzlp0bwQxZox2b4=";
|
2019-07-06 07:40:02 +00:00
|
|
|
};
|
|
|
|
|
2022-02-12 13:39:18 +00:00
|
|
|
vendorSha256 = "sha256-tY9iwQW6cB1FgLAmkDNMrvIxR+i4aGYhNs4tepI654o=";
|
2019-07-06 07:40:02 +00:00
|
|
|
|
2022-01-18 12:33:52 +00:00
|
|
|
checkPhase = "go test ./...";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2019-07-06 07:40:02 +00:00
|
|
|
subPackages = [ "cmd/cue" ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X cuelang.org/go/cmd/cue/cmd.version=${version}"
|
2019-07-06 07:40:02 +00:00
|
|
|
];
|
|
|
|
|
2022-01-18 12:33:52 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/cue eval - <<<'a: "all good"' > /dev/null
|
|
|
|
'';
|
|
|
|
|
2019-07-06 07:40:02 +00:00
|
|
|
meta = {
|
2019-11-22 02:08:54 +00:00
|
|
|
description = "A data constraint language which aims to simplify tasks involving defining and using data";
|
|
|
|
homepage = "https://cuelang.org/";
|
2021-06-01 19:11:23 +00:00
|
|
|
maintainers = [];
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.asl20;
|
2019-07-06 07:40:02 +00:00
|
|
|
};
|
2020-05-16 17:15:28 +00:00
|
|
|
}
|