From 0b492c00609b1ae05020c5b630fa1a25684ab9b0 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sat, 6 Jul 2019 01:40:02 -0600 Subject: [PATCH] cue: init at 0.0.3 (#64367) --- pkgs/development/tools/cue/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/tools/cue/default.nix diff --git a/pkgs/development/tools/cue/default.nix b/pkgs/development/tools/cue/default.nix new file mode 100644 index 000000000000..4187d0629509 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93a14e062190..bb18cfc88a18 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -740,6 +740,8 @@ in crumbs = callPackage ../applications/misc/crumbs { }; + cue = callPackage ../development/tools/cue { }; + deskew = callPackage ../applications/graphics/deskew { }; detect-secrets = python3Packages.callPackage ../development/tools/detect-secrets { };