mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
psqlodbc: fix update script
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
|
||||
assert lib.xor withLibiodbc withUnixODBC;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "psqlodbc";
|
||||
version = "${builtins.replaceStrings [ "_" ] [ "." ] (lib.strings.removePrefix "REL-" src.tag)}";
|
||||
version = "17.00.0006";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "postgresql-interfaces";
|
||||
repo = "psqlodbc";
|
||||
tag = "REL-17_00_0006";
|
||||
tag = "REL-${lib.replaceString "." "_" finalAttrs.version}";
|
||||
hash = "sha256-iu1PWkfOyWtMmy7/8W+acu8v+e8nUPkCIHtVNZ8HzRg=";
|
||||
};
|
||||
|
||||
@@ -48,7 +48,9 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withUnixODBC "--with-unixodbc=${unixODBC}";
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex=^REL-(\\d+)_(\\d+)_(\\d+)$" ];
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs withUnixODBC {
|
||||
fancyName = "PostgreSQL";
|
||||
@@ -62,4 +64,4 @@ stdenv.mkDerivation rec {
|
||||
platforms = lib.platforms.unix;
|
||||
teams = libpq.meta.teams;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user