nixpkgs/pkgs/development/libraries/packr/default.nix

57 lines
1.3 KiB
Nix
Raw Normal View History

2019-07-02 05:01:13 +01:00
{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
, symlinkJoin
2019-07-02 05:01:13 +01:00
}:
let p2 = buildGoModule rec {
pname = "packr2";
version = "2.8.0";
2019-07-02 05:01:13 +01:00
src = fetchFromGitHub {
owner = "gobuffalo";
repo = "packr";
2019-07-02 05:01:13 +01:00
rev = "v${version}";
sha256 = "1x78yq2yg0r82h7a67078llni85gk9nbd2ismlbqgppap7fcpyai";
}+"/v2";
subPackages = [ "packr2" ];
vendorSha256 = "12yq121b0bn8z12091fyqhhz421kgx4z1nskrkvbxlhyc47bwyrp";
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 ];
};
};
p1 = buildGoModule rec {
pname = "packr1";
version = "2.8.0";
src = fetchFromGitHub {
owner = "gobuffalo";
repo = "packr";
rev = "v${version}";
sha256 = "1x78yq2yg0r82h7a67078llni85gk9nbd2ismlbqgppap7fcpyai";
2019-07-02 05:01:13 +01:00
};
subPackages = [ "packr" ];
2019-09-16 23:17:36 +01:00
vendorSha256 = "0m3yj8ww4a16j56p8d8w0sdnyx0g2bkd8zg0l4d8vb72mvg5asga";
2019-07-02 05:01:13 +01:00
meta = with lib; {
2019-07-02 05:01:13 +01: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 ];
};
};
in
symlinkJoin{
name = "packr";
paths = [p1 p2];
}