katja's git: nixfiles

ctucx' nixfiles

commit c22422ed404e00995726d3193ab4e4021edd3f14
parent 9071c8709eee06ab52b656d8620da1c2e0910ad6
Author: Katja (ctucx) <git@ctu.cx>
Date: Sat, 22 Mar 2025 10:42:39 +0100

pkgs/all/gomuks-web: do not read version from src, as it breaks things like `nix flake show`
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/packages/all/gomuks-web.nix b/packages/all/gomuks-web.nix
@@ -5,13 +5,10 @@ let
 
 in buildGo123Module rec {
   pname   = "gomuks-web";
+  version = "0.4.0-${builtins.substring 0 6 rev}";
   rev     = "295d1f156e4d4bd1b0e47596cc1bf02c1b9173ec";
   sha256  = "sha256-AB7Gjs/42r3CiHTOqc0Y3EJCUio9i48dMGsLMRQG+nA=";
 
-  # Extract version from version.go
-  versionContent = builtins.readFile "${src}/version/version.go";
-  versionMatch = builtins.match ''^.*const StaticVersion = "([0-9\.]+)".*$'' versionContent;
-  version = "${builtins.elemAt versionMatch 0}-${builtins.substring 0 6 rev}";
 
   src = fetchFromGitHub {
     owner  = "tulir";