about summary refs log tree commit diff
path: root/pkgs/development/tools/cue
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2019-07-06 01:40:02 -0600
committerWael Nasreddine <wael.nasreddine@gmail.com>2019-07-06 00:40:01 -0700
commit0b492c00609b1ae05020c5b630fa1a25684ab9b0 (patch)
tree77eb1692b8973ebac6f627607c05b7a698d47a3e /pkgs/development/tools/cue
parentc0773aa73c9235425489c24c5095643a515885a7 (diff)
cue: init at 0.0.3 (#64367)
Diffstat (limited to 'pkgs/development/tools/cue')
-rw-r--r--pkgs/development/tools/cue/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/cue/default.nix b/pkgs/development/tools/cue/default.nix
new file mode 100644
index 0000000000000..4187d0629509c
--- /dev/null
+++ b/pkgs/development/tools/cue/default.nix
@@ -0,0 +1,27 @@
+{ buildGoModule, fetchgit, stdenv }:
+
+buildGoModule rec {
+  pname = "cue";
+  version = "0.0.3";
+
+  src = fetchgit {
+    url = "https://cue.googlesource.com/cue";
+    rev = "v${version}";
+    sha256 = "1abvvgicr64ssiprkircih2nrbcr1yqxf1qkl21kh0ww1xfp0rw7";
+  };
+
+  modSha256 = "0r5vbplcfq1rsp2jnixq6lfbpcv7grf0q38na76qy7pjb57zikb6";
+
+  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;
+  };
+}