psqlodbc: fix update script

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