mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
pb: use finalAttrs
This commit is contained in:
parent
f9969bf7f6
commit
68c76b1457
1 changed files with 5 additions and 5 deletions
|
@ -4,14 +4,14 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "pb";
|
pname = "pb";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "parseablehq";
|
owner = "parseablehq";
|
||||||
repo = "pb";
|
repo = "pb";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-OXxLHi7v/xJZVvxHZvJ0eH4MYrlLFxDAMT9CVG2mWTM=";
|
hash = "sha256-OXxLHi7v/xJZVvxHZvJ0eH4MYrlLFxDAMT9CVG2mWTM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ buildGoModule rec {
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
"-X main.Version=${version}"
|
"-X main.Version=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
tags = [ "kqueue" ];
|
tags = [ "kqueue" ];
|
||||||
|
@ -29,10 +29,10 @@ buildGoModule rec {
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/parseablehq/pb";
|
homepage = "https://github.com/parseablehq/pb";
|
||||||
changelog = "https://github.com/parseablehq/pb/releases/tag/v${version}";
|
changelog = "https://github.com/parseablehq/pb/releases/tag/v${finalAttrs.version}";
|
||||||
description = "CLI client for Parseable server";
|
description = "CLI client for Parseable server";
|
||||||
license = lib.licenses.agpl3Plus;
|
license = lib.licenses.agpl3Plus;
|
||||||
maintainers = with lib.maintainers; [ aaronjheng ];
|
maintainers = with lib.maintainers; [ aaronjheng ];
|
||||||
mainProgram = "pb";
|
mainProgram = "pb";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue