about summary refs log tree commit diff
path: root/pkgs/development/compilers/go-jsonnet
diff options
context:
space:
mode:
authorNahum Shalman <nshalman@uber.com>2019-04-30 16:13:15 -0400
committerNahum Shalman <nahamu@gmail.com>2019-06-05 13:39:56 -0400
commite3e32c202814350ed8e2d95eb419703b8daa4427 (patch)
tree307ba8cbe724fd196af84778200f3e2a30d4ee3e /pkgs/development/compilers/go-jsonnet
parent0bf6841a21fa2fcee9dc4a6bcff03012d08e849a (diff)
downloadnixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar.gz
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar.bz2
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar.lz
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar.xz
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.tar.zst
nixlib-e3e32c202814350ed8e2d95eb419703b8daa4427.zip
go-jsonnet: init at v0.13.0
Diffstat (limited to 'pkgs/development/compilers/go-jsonnet')
-rw-r--r--pkgs/development/compilers/go-jsonnet/default.nix33
-rw-r--r--pkgs/development/compilers/go-jsonnet/deps.nix48
2 files changed, 81 insertions, 0 deletions
diff --git a/pkgs/development/compilers/go-jsonnet/default.nix b/pkgs/development/compilers/go-jsonnet/default.nix
new file mode 100644
index 000000000000..1001aac8306d
--- /dev/null
+++ b/pkgs/development/compilers/go-jsonnet/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "go-jsonnet-${version}";
+  version = "0.13.0";
+
+  goPackagePath = "github.com/google/go-jsonnet";
+
+  # regenerate deps.nix using following steps:
+  #
+  # go get -u github.com/google/go-jsonnet
+  # cd $GOPATH/src/github.com/google/go-jsonnet
+  # git checkout <version>
+  # dep init
+  # dep2nix
+  goDeps = ./deps.nix;
+
+  src = fetchFromGitHub {
+    rev = "v${version}";
+    owner = "google";
+    repo = "go-jsonnet";
+    sha256 = "0x95sqhrw4pscxq0q8781wix0w881k9my5kn5nf6k0fg1d6qlgiy";
+    fetchSubmodules = true;
+  };
+
+  meta = {
+    description = "An implementation of Jsonnet in pure Go";
+    maintainers = with lib.maintainers; [ nshalman ];
+    license = lib.licenses.asl20;
+    homepage = https://github.com/google/go-jsonnet;
+    platforms = lib.platforms.unix;
+  };
+}
diff --git a/pkgs/development/compilers/go-jsonnet/deps.nix b/pkgs/development/compilers/go-jsonnet/deps.nix
new file mode 100644
index 000000000000..1f413a16d81d
--- /dev/null
+++ b/pkgs/development/compilers/go-jsonnet/deps.nix
@@ -0,0 +1,48 @@
+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
+[
+  {
+    goPackagePath  = "github.com/fatih/color";
+    fetch = {
+      type = "git";
+      url = "https://github.com/fatih/color";
+      rev =  "5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4";
+      sha256 = "0v8msvg38r8d1iiq2i5r4xyfx0invhc941kjrsg5gzwvagv55inv";
+    };
+  }
+  {
+    goPackagePath  = "github.com/mattn/go-colorable";
+    fetch = {
+      type = "git";
+      url = "https://github.com/mattn/go-colorable";
+      rev =  "167de6bfdfba052fa6b2d3664c8f5272e23c9072";
+      sha256 = "1nwjmsppsjicr7anq8na6md7b1z84l9ppnlr045hhxjvbkqwalvx";
+    };
+  }
+  {
+    goPackagePath  = "github.com/mattn/go-isatty";
+    fetch = {
+      type = "git";
+      url = "https://github.com/mattn/go-isatty";
+      rev =  "1311e847b0cb909da63b5fecfb5370aa66236465";
+      sha256 = "0rqfh1rj6f5wm8p2ky7inm8g10152p7w6n2cli17kf9gad797i8h";
+    };
+  }
+  {
+    goPackagePath  = "github.com/sergi/go-diff";
+    fetch = {
+      type = "git";
+      url = "https://github.com/sergi/go-diff";
+      rev =  "1744e2970ca51c86172c8190fadad617561ed6e7";
+      sha256 = "0swiazj8wphs2zmk1qgq75xza6m19snif94h2m6fi8dqkwqdl7c7";
+    };
+  }
+  {
+    goPackagePath  = "golang.org/x/sys";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/sys";
+      rev =  "4c4f7f33c9ed00de01c4c741d2177abfcfe19307";
+      sha256 = "191001bxqyc3xfs46nnqmm7jdk0r73vk7a4zqngfl7zwjv9smwsq";
+    };
+  }
+]
\ No newline at end of file