psqlodbc: fix update script

+7 -5
+7 -5
pkgs/by-name/ps/psqlodbc/package.nix
··· 16 16 17 17 assert lib.xor withLibiodbc withUnixODBC; 18 18 19 - stdenv.mkDerivation rec { 19 + stdenv.mkDerivation (finalAttrs: { 20 20 pname = "psqlodbc"; 21 - version = "${builtins.replaceStrings [ "_" ] [ "." ] (lib.strings.removePrefix "REL-" src.tag)}"; 21 + version = "17.00.0006"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "postgresql-interfaces"; 25 25 repo = "psqlodbc"; 26 - tag = "REL-17_00_0006"; 26 + tag = "REL-${lib.replaceString "." "_" finalAttrs.version}"; 27 27 hash = "sha256-iu1PWkfOyWtMmy7/8W+acu8v+e8nUPkCIHtVNZ8HzRg="; 28 28 }; 29 29 ··· 48 48 ++ lib.optional withUnixODBC "--with-unixodbc=${unixODBC}"; 49 49 50 50 passthru = { 51 - updateScript = nix-update-script { }; 51 + updateScript = nix-update-script { 52 + extraArgs = [ "--version-regex=^REL-(\\d+)_(\\d+)_(\\d+)$" ]; 53 + }; 52 54 } 53 55 // lib.optionalAttrs withUnixODBC { 54 56 fancyName = "PostgreSQL"; ··· 62 64 platforms = lib.platforms.unix; 63 65 teams = libpq.meta.teams; 64 66 }; 65 - } 67 + })