Skip to content

Commit

Permalink
buildpack: moved to by-name and modernized derivation (#345645)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 25, 2024
2 parents 94e7097 + b5b06a2 commit 908e008
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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=";
};

Expand All @@ -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 \
Expand All @@ -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 ];
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 908e008

Please sign in to comment.