From d3df05e61d17e20f9c345f45c80a12675b5ac087 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 17 Nov 2019 16:20:00 -0500 Subject: [PATCH] buildpack: init at 0.5.0 --- pkgs/development/tools/buildpack/default.nix | 26 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/tools/buildpack/default.nix 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;