Loading pkgs/by-name/bo/boulder/package.nix +15 −11 Original line number Diff line number Diff line Loading @@ -3,19 +3,18 @@ fetchFromGitHub, buildGoModule, testers, boulder, minica, nix-update-script, }: buildGoModule rec { buildGoModule (finalAttrs: { pname = "boulder"; version = "0.20251118.0"; version = "0.20260331.0"; src = fetchFromGitHub { owner = "letsencrypt"; repo = "boulder"; tag = "v${version}"; tag = "v${finalAttrs.version}"; leaveDotGit = true; postFetch = '' pushd $out Loading @@ -23,7 +22,7 @@ buildGoModule rec { find $out -name .git -print0 | xargs -0 rm -rf popd ''; hash = "sha256-JVkIu8Fh5F8WQXa45I0hnSedAaIQIOFidtWVpVHbAWA="; hash = "sha256-2kYZp/cU9OuXmy8EDoX7htqlM7NpAl45Nf2S5MTVn6Y="; }; vendorHash = null; Loading @@ -35,6 +34,8 @@ buildGoModule rec { subPackages = [ "cmd/boulder" ]; excludedPackages = [ "test/integration" ]; ldflags = [ "-s" "-w" Loading @@ -42,10 +43,12 @@ buildGoModule rec { ]; preBuild = '' ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildID=${version} +$(cat COMMIT)\"" ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildID=${finalAttrs.version} +$(cat COMMIT)\"" ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildTime=$(date -u -d @0)\"" ''; __darwinAllowLocalNetworking = true; nativeCheckInputs = [ minica ]; preCheck = '' Loading Loading @@ -109,6 +112,7 @@ buildGoModule rec { "TestCountPendingAuthorizations2" "TestCountRegistrationsByIP" "TestCountRegistrationsByIPRange" "TestCreateAndFetchRegistrations" "TestDbSettings" "TestDeactivateAccount" "TestDeactivateAuthorization" Loading Loading @@ -325,7 +329,7 @@ buildGoModule rec { ]; checkFlags = [ "-skip ${lib.strings.concatStringsSep "|" disabledTests}" "-skip ${lib.strings.concatStringsSep "|" finalAttrs.disabledTests}" ]; postInstall = '' Loading @@ -336,8 +340,8 @@ buildGoModule rec { passthru = { tests.version = testers.testVersion { package = boulder; inherit version; package = finalAttrs.finalPackage; version = finalAttrs.version; }; updateScript = nix-update-script { }; }; Loading @@ -354,6 +358,6 @@ buildGoModule rec { ''; license = lib.licenses.mpl20; mainProgram = "boulder"; maintainers = [ ]; maintainers = with lib.maintainers; [ miniharinn ]; }; } }) Loading
pkgs/by-name/bo/boulder/package.nix +15 −11 Original line number Diff line number Diff line Loading @@ -3,19 +3,18 @@ fetchFromGitHub, buildGoModule, testers, boulder, minica, nix-update-script, }: buildGoModule rec { buildGoModule (finalAttrs: { pname = "boulder"; version = "0.20251118.0"; version = "0.20260331.0"; src = fetchFromGitHub { owner = "letsencrypt"; repo = "boulder"; tag = "v${version}"; tag = "v${finalAttrs.version}"; leaveDotGit = true; postFetch = '' pushd $out Loading @@ -23,7 +22,7 @@ buildGoModule rec { find $out -name .git -print0 | xargs -0 rm -rf popd ''; hash = "sha256-JVkIu8Fh5F8WQXa45I0hnSedAaIQIOFidtWVpVHbAWA="; hash = "sha256-2kYZp/cU9OuXmy8EDoX7htqlM7NpAl45Nf2S5MTVn6Y="; }; vendorHash = null; Loading @@ -35,6 +34,8 @@ buildGoModule rec { subPackages = [ "cmd/boulder" ]; excludedPackages = [ "test/integration" ]; ldflags = [ "-s" "-w" Loading @@ -42,10 +43,12 @@ buildGoModule rec { ]; preBuild = '' ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildID=${version} +$(cat COMMIT)\"" ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildID=${finalAttrs.version} +$(cat COMMIT)\"" ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildTime=$(date -u -d @0)\"" ''; __darwinAllowLocalNetworking = true; nativeCheckInputs = [ minica ]; preCheck = '' Loading Loading @@ -109,6 +112,7 @@ buildGoModule rec { "TestCountPendingAuthorizations2" "TestCountRegistrationsByIP" "TestCountRegistrationsByIPRange" "TestCreateAndFetchRegistrations" "TestDbSettings" "TestDeactivateAccount" "TestDeactivateAuthorization" Loading Loading @@ -325,7 +329,7 @@ buildGoModule rec { ]; checkFlags = [ "-skip ${lib.strings.concatStringsSep "|" disabledTests}" "-skip ${lib.strings.concatStringsSep "|" finalAttrs.disabledTests}" ]; postInstall = '' Loading @@ -336,8 +340,8 @@ buildGoModule rec { passthru = { tests.version = testers.testVersion { package = boulder; inherit version; package = finalAttrs.finalPackage; version = finalAttrs.version; }; updateScript = nix-update-script { }; }; Loading @@ -354,6 +358,6 @@ buildGoModule rec { ''; license = lib.licenses.mpl20; mainProgram = "boulder"; maintainers = [ ]; maintainers = with lib.maintainers; [ miniharinn ]; }; } })