diff --git a/pkgs/development/tools/buildpack/default.nix b/pkgs/by-name/bu/buildpack/package.nix similarity index 70% rename from pkgs/development/tools/buildpack/default.nix rename to pkgs/by-name/bu/buildpack/package.nix index 31a4c70bd68f0..5485501643917 100644 --- a/pkgs/development/tools/buildpack/default.nix +++ b/pkgs/by-name/bu/buildpack/package.nix @@ -1,13 +1,21 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: - -buildGoModule rec { +{ + lib, + buildGoModule, + fetchFromGitHub, + installShellFiles, +}: + +let pname = "pack"; version = "0.35.1"; +in +buildGoModule { + inherit pname version; src = fetchFromGitHub { owner = "buildpacks"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-iQkYtnobhAt73JMRrejk0DkOH1ZW2bqfZx05ZrDG5bA="; }; @@ -17,7 +25,11 @@ buildGoModule rec { subPackages = [ "cmd/pack" ]; - ldflags = [ "-s" "-w" "-X github.com/buildpacks/pack.Version=${version}" ]; + ldflags = [ + "-s" + "-w" + "-X github.com/buildpacks/pack.Version=${version}" + ]; postInstall = '' installShellCompletion --cmd pack \ @@ -26,12 +38,12 @@ buildGoModule rec { --fish $(PACK_HOME=$PWD $out/bin/pack completion --shell fish) ''; - meta = with lib; { + meta = { homepage = "https://buildpacks.io/"; changelog = "https://github.com/buildpacks/pack/releases/tag/v${version}"; description = "CLI for building apps using Cloud Native Buildpacks"; mainProgram = "pack"; - license = licenses.asl20; - maintainers = [ ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ momeemt ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3d2b45ab67e9..09d70e2b8c1ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4169,8 +4169,6 @@ with pkgs; btrbk = callPackage ../tools/backup/btrbk { }; - buildpack = callPackage ../development/tools/buildpack { }; - bonk = callPackage ../tools/misc/bonk { }; bottom-rs = callPackage ../tools/misc/bottom-rs { };