2019-07-02 04:01:13 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
2020-03-21 09:35:00 +00:00
|
|
|
, stdenv
|
|
|
|
, Security
|
2019-07-02 04:01:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "packr";
|
2019-10-23 02:54:20 +00:00
|
|
|
version = "2.7.1";
|
2019-07-02 04:01:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gobuffalo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-23 02:54:20 +00:00
|
|
|
sha256 = "0m5kl2fq8gf1v4vllgag2xl8fd382sdgqrcdb8f5alsnrdn08kb9";
|
2019-07-02 04:01:13 +00:00
|
|
|
};
|
|
|
|
|
2019-09-16 22:17:36 +00:00
|
|
|
subPackages = [ "packr" "v2/packr2" ];
|
|
|
|
|
2020-03-21 09:35:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-09-16 22:17:36 +00:00
|
|
|
modSha256 = "0afhkvivma16bi8rz3kwcsz9mhmcn4zm6rrymxkvazx6b844hcdv";
|
2019-07-02 04:01:13 +00:00
|
|
|
|
2020-03-21 09:35:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-07-02 04:01:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|