diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/packr')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/packr/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/packr/default.nix b/nixpkgs/pkgs/development/libraries/packr/default.nix new file mode 100644 index 000000000000..b0c7ac3cab6b --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/packr/default.nix @@ -0,0 +1,30 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +, Security +}: + +buildGoModule rec { + pname = "packr"; + version = "2.7.1"; + + src = fetchFromGitHub { + owner = "gobuffalo"; + repo = pname; + rev = "v${version}"; + sha256 = "0m5kl2fq8gf1v4vllgag2xl8fd382sdgqrcdb8f5alsnrdn08kb9"; + }; + + subPackages = [ "packr" "v2/packr2" ]; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + + modSha256 = "0afhkvivma16bi8rz3kwcsz9mhmcn4zm6rrymxkvazx6b844hcdv"; + + meta = with stdenv.lib; { + description = "The simple and easy way to embed static files into Go binaries"; + homepage = "https://github.com/gobuffalo/packr"; + license = licenses.mit; + maintainers = with maintainers; [ mmahut ]; + }; +} |