about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/go-bindata
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/go-bindata')
-rw-r--r--nixpkgs/pkgs/development/tools/go-bindata/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/go-bindata/default.nix b/nixpkgs/pkgs/development/tools/go-bindata/default.nix
new file mode 100644
index 000000000000..5d3e5d714f25
--- /dev/null
+++ b/nixpkgs/pkgs/development/tools/go-bindata/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "go-bindata";
+  version = "4.0.2";
+
+  src = fetchFromGitHub {
+    owner = "kevinburke";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-3/1RqJrv1fsPKsZpurp2dHsMg8FJBcFlI/pwwCf5H6E=";
+  };
+
+  vendorHash = null;
+
+  subPackages = [ "go-bindata" ];
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/kevinburke/go-bindata";
+    changelog = "https://github.com/kevinburke/go-bindata/blob/v${version}/CHANGELOG.md";
+    description = "A small utility which generates Go code from any file, useful for embedding binary data in a Go program";
+    maintainers = with maintainers; [ ];
+    license = licenses.cc0;
+  };
+}