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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.7 KiB
Nix
Raw Normal View History

2022-10-01 19:21:20 +00:00
{ stdenv
, buildGoModule
2019-07-02 04:01:13 +00:00
, fetchFromGitHub
, lib
, symlinkJoin
2019-07-02 04:01:13 +00:00
}:
let p2 = buildGoModule rec {
pname = "packr2";
version = "2.8.0";
2019-07-02 04:01:13 +00:00
src = fetchFromGitHub {
owner = "gobuffalo";
repo = "packr";
2019-07-02 04:01:13 +00:00
rev = "v${version}";
2023-09-21 14:23:40 +00:00
hash = "sha256-UfnL3Lnq3ocXrTqKtmyar6BoKUUHHKMOFCiD5wX26PQ=";
}+"/v2";
subPackages = [ "packr2" ];
2023-09-21 14:23:40 +00:00
vendorHash = "sha256-N3u+DmEe0r72zFPb8El/MwjyIcTehQRE+MgusIII2Is=";
doCheck = false;
meta = with 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 ];
2022-10-01 19:21:20 +00:00
# golang.org/x/sys needs to be updated due to:
#
# https://github.com/golang/go/issues/49219
#
# but this package is no longer maintained.
#
broken = stdenv.isDarwin;
};
};
p1 = buildGoModule rec {
pname = "packr1";
version = "2.8.0";
src = fetchFromGitHub {
owner = "gobuffalo";
repo = "packr";
rev = "v${version}";
2023-09-21 14:23:40 +00:00
hash = "sha256-UfnL3Lnq3ocXrTqKtmyar6BoKUUHHKMOFCiD5wX26PQ=";
2019-07-02 04:01:13 +00:00
};
subPackages = [ "packr" ];
2019-09-16 22:17:36 +00:00
2023-09-21 14:23:40 +00:00
vendorHash = "sha256-6mlV3q7irI0aoeB91OYSD3RvmwYcNXRNkSYowjmSflQ=";
2019-07-02 04:01:13 +00:00
doCheck = false;
meta = with 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 ];
2022-10-01 19:21:20 +00:00
# golang.org/x/sys needs to be updated due to:
#
# https://github.com/golang/go/issues/49219
#
# but this package is no longer maintained.
#
broken = stdenv.isDarwin;
2019-07-02 04:01:13 +00:00
};
};
in
symlinkJoin{
name = "packr";
paths = [p1 p2];
}