nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 29 lines 692 B view raw
1{ buildGoModule, fetchgit, lib }: 2 3buildGoModule rec { 4 pname = "cue"; 5 version = "0.4.0"; 6 7 src = fetchgit { 8 url = "https://cue.googlesource.com/cue"; 9 rev = "v${version}"; 10 sha256 = "sha256-rcGEl+CMFyxZKsOKhVimhv5/ONo3xS6FjgKModZGR2o="; 11 }; 12 13 vendorSha256 = "sha256-eSKVlBgnHR1R0j1lNwtFoIgRuj8GqoMbvuBl/N1SanY="; 14 15 doCheck = false; 16 17 subPackages = [ "cmd/cue" ]; 18 19 ldflags = [ 20 "-s" "-w" "-X cuelang.org/go/cmd/cue/cmd.version=${version}" 21 ]; 22 23 meta = { 24 description = "A data constraint language which aims to simplify tasks involving defining and using data"; 25 homepage = "https://cuelang.org/"; 26 maintainers = []; 27 license = lib.licenses.asl20; 28 }; 29}