about summary refs log tree commit diff
path: root/pkgs/by-name/pa
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-05-13 01:18:39 +0200
committerGitHub <noreply@github.com>2024-05-13 01:18:39 +0200
commit5e5c48fd703135dd5fd287c239dd4ec542880536 (patch)
tree2f13bf9d54dcdff43fb8098e9719ccf362f02791 /pkgs/by-name/pa
parente2b27c43ac562b7e111a5d49a8eb7bfe04805334 (diff)
parenta59ea1b6c100f608979b3e694a7f44366fed607e (diff)
Merge pull request #308574 from cimm/update-payme
payme: 1.2.0 -> 1.2.2
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r--pkgs/by-name/pa/payme/package.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/by-name/pa/payme/package.nix b/pkgs/by-name/pa/payme/package.nix
index 5465274e18638..4dd5af7076202 100644
--- a/pkgs/by-name/pa/payme/package.nix
+++ b/pkgs/by-name/pa/payme/package.nix
@@ -2,17 +2,18 @@
 
 buildGoModule rec {
   pname = "payme";
-  version = "1.2.0";
+  version = "1.2.2";
 
   src = fetchFromGitHub {
     owner = "jovandeginste";
     repo = "payme";
     rev = "v${version}";
-    hash = "sha256-2gZgmYgLaJQRQ+3VOUDnMm5QBjfKyxyutVf9NrbGO3g=";
+    hash = "sha256-LZyTwi4VCetIF39yc7WU3VR20DfFxfhDr3FvVQo7b/Q=";
     leaveDotGit = true;
     postFetch = ''
       cd "$out"
       git rev-parse HEAD > $out/COMMIT
+      TZ=UTC0 git show --quiet --date=iso-local --format=%cd > $out/BUILD_TIME
       find "$out" -name .git -print0 | xargs -0 rm -rf
     '';
   };
@@ -27,6 +28,7 @@ buildGoModule rec {
 
   preBuild = ''
     ldflags+=" -X main.gitCommit=$(cat COMMIT)"
+    ldflags+=" -X 'main.buildTime=$(cat BUILD_TIME)'"
   '';
 
   meta = {