diff options
author | Simon Schoeters <b2282e9d-46e8-4ec4-946a-b6ad84078b1c@astil.be> | 2024-03-22 13:55:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:55:44 +0100 |
commit | 506939e98cfec9315eb1c41a14943e20a72013c6 (patch) | |
tree | c60db273ed29dfb521ce6dc9a7fc62fb9b96ce33 /pkgs/by-name/pa | |
parent | b5ff22d5e0f8c9e29f5f290480ddbf7dadcce026 (diff) |
payme: fix version number string (#297480)
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/payme/package.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/by-name/pa/payme/package.nix b/pkgs/by-name/pa/payme/package.nix index 96b973e6f4d2b..5465274e18638 100644 --- a/pkgs/by-name/pa/payme/package.nix +++ b/pkgs/by-name/pa/payme/package.nix @@ -8,11 +8,27 @@ buildGoModule rec { owner = "jovandeginste"; repo = "payme"; rev = "v${version}"; - hash = "sha256-WE/sAs0VSeb5UKkUy1iyjyXtgDmlQhdZkw8HMMSbQiE="; + hash = "sha256-2gZgmYgLaJQRQ+3VOUDnMm5QBjfKyxyutVf9NrbGO3g="; + leaveDotGit = true; + postFetch = '' + cd "$out" + git rev-parse HEAD > $out/COMMIT + find "$out" -name .git -print0 | xargs -0 rm -rf + ''; }; vendorHash = null; + ldflags = [ + "-s" + "-w" + "-X main.gitRefName=${src.rev}" + ]; + + preBuild = '' + ldflags+=" -X main.gitCommit=$(cat COMMIT)" + ''; + meta = { description = "QR code generator (ASCII & PNG) for SEPA payments"; mainProgram = "payme"; |