tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
psqlodbc: fix update script
Wolfgang Walther
5 months ago
ca232376
8b183cf9
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ps
psqlodbc
package.nix
+7
-5
pkgs/by-name/ps/psqlodbc/package.nix
···
16
16
17
17
assert lib.xor withLibiodbc withUnixODBC;
18
18
19
19
-
stdenv.mkDerivation rec {
19
19
+
stdenv.mkDerivation (finalAttrs: {
20
20
pname = "psqlodbc";
21
21
-
version = "${builtins.replaceStrings [ "_" ] [ "." ] (lib.strings.removePrefix "REL-" src.tag)}";
21
21
+
version = "17.00.0006";
22
22
23
23
src = fetchFromGitHub {
24
24
owner = "postgresql-interfaces";
25
25
repo = "psqlodbc";
26
26
-
tag = "REL-17_00_0006";
26
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
51
-
updateScript = nix-update-script { };
51
51
+
updateScript = nix-update-script {
52
52
+
extraArgs = [ "--version-regex=^REL-(\\d+)_(\\d+)_(\\d+)$" ];
53
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
65
-
}
67
67
+
})