1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

athens: 0.14.1 -> 0.15.1 (#340700)

This commit is contained in:
Paul Meyer 2024-09-09 10:52:18 +02:00 committed by GitHub
commit d3463a289c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,24 +1,29 @@
{ lib {
, fetchFromGitHub lib,
, buildGoModule fetchFromGitHub,
, testers buildGoModule,
, athens testers,
athens,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "athens"; pname = "athens";
version = "0.14.1"; version = "0.15.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gomods"; owner = "gomods";
repo = "athens"; repo = "athens";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-vpg5EcQSxVFjDFKa4oHwF5fNHhLWtj3ZMi2wbMZNn/8="; hash = "sha256-JERyECQ3/pI+ApWyWvUwZqkGBmA+6pP7Uj+RfpUGsOw=";
}; };
vendorHash = "sha256-LajNPzGbWqW+9aqiquk2LvSUjKwi1gbDY4cKXmn3PWk="; vendorHash = "sha256-tCpwiqJHGRo9vqUh00k+tg4X6WNPnnknV7zjPkgs6Zs=";
CGO_ENABLED = "0"; CGO_ENABLED = "0";
ldflags = [ "-s" "-w" "-X github.com/gomods/athens/pkg/build.version=${version}" ]; ldflags = [
"-s"
"-X github.com/gomods/athens/pkg/build.version=${version}"
];
subPackages = [ "cmd/proxy" ]; subPackages = [ "cmd/proxy" ];
@ -27,9 +32,7 @@ buildGoModule rec {
''; '';
passthru = { passthru = {
tests.version = testers.testVersion { tests.version = testers.testVersion { package = athens; };
package = athens;
};
}; };
meta = with lib; { meta = with lib; {
@ -38,7 +41,10 @@ buildGoModule rec {
changelog = "https://github.com/gomods/athens/releases/tag/v${version}"; changelog = "https://github.com/gomods/athens/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
mainProgram = "athens"; mainProgram = "athens";
maintainers = with maintainers; [ katexochen malt3 ]; maintainers = with maintainers; [
katexochen
malt3
];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }