diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-11-17 16:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-11-17 16:20:00 -0500 |
commit | d3df05e61d17e20f9c345f45c80a12675b5ac087 (patch) | |
tree | 3b155b95287acd694d37327289ea98c2ffdfe139 | |
parent | 1fb4a93c3a37e4fdb0caf82dc5b5dfb2d654057c (diff) |
buildpack: init at 0.5.0
-rw-r--r-- | pkgs/development/tools/buildpack/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/buildpack/default.nix b/pkgs/development/tools/buildpack/default.nix new file mode 100644 index 000000000000..8c1a2bbb62d4 --- /dev/null +++ b/pkgs/development/tools/buildpack/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + pname = "pack"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "buildpack"; + repo = pname; + rev = "v${version}"; + sha256 = "0yh62h7lz2i07gixccmfyxk607djp1nrs57rzk7nkxnjcj4jj5sr"; + }; + + goPackagePath = "github.com/buildpack/pack"; + + subPackages = [ "cmd/pack" ]; + + buildFlagsArray = [ "-ldflags=-s -w -X github.com/buildpack/pack/cmd.Version=${version}" ]; + + meta = with lib; { + homepage = "https://buildpacks.io/"; + description = "Local CLI for building apps using Cloud Native Buildpacks"; + license = licenses.asl20; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 111f3df981f5..47a00d800804 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1249,6 +1249,8 @@ in asciidoc = asciidoc-full; }; + buildpack = callPackage ../development/tools/buildpack { }; + buildtorrent = callPackage ../tools/misc/buildtorrent { }; bustle = haskellPackages.bustle; |