summary refs log tree commit diff
path: root/pkgs/development/libraries/packr/default.nix
blob: b0c7ac3cab6bba3f0291fb5bc51841986b3a119c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ];
  };
}