roadrunner: refactor

This commit is contained in:
Fabian Affolter 2024-05-03 09:35:16 +02:00 committed by GitHub
parent db4b8e4bb3
commit 74f9ef5b2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,10 +7,11 @@
buildGoModule rec {
pname = "roadrunner";
version = "2024.1.1";
src = fetchFromGitHub {
repo = "roadrunner";
owner = "roadrunner-server";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-uSc4dVDw4aXuo0mKPhsXLYfifpu4c+L7AQXaDgTkvTc=";
};
@ -22,8 +23,8 @@ buildGoModule rec {
# https://github.com/roadrunner-server/roadrunner/blob/fe572d0eceae8fd05225fbd99ba50a9eb10c4393/.github/workflows/release.yml#L89
ldflags = [
"-s"
"-X github.com/roadrunner-server/roadrunner/v2023/internal/meta.version=${version}"
"-X github.com/roadrunner-server/roadrunner/v2023/internal/meta.buildTime=1970-01-01T00:00:00Z"
"-X=github.com/roadrunner-server/roadrunner/v2023/internal/meta.version=${version}"
"-X=github.com/roadrunner-server/roadrunner/v2023/internal/meta.buildTime=1970-01-01T00:00:00Z"
];
postInstall = ''