tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
clickhouse: Add nix-update-script
Jonathan Davies
6 months ago
67710e33
7885b4e3
+21
-1
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
cl
clickhouse
generic.nix
lts.nix
package.nix
+9
-1
pkgs/by-name/cl/clickhouse/generic.nix
···
2
lts ? false,
3
version,
4
hash,
0
5
}:
6
7
{
···
23
rustc,
24
cargo,
25
rustPlatform,
0
26
}:
27
28
llvmPackages_19.stdenv.mkDerivation (finalAttrs: {
···
156
# Builds in 7+h with 2 cores, and ~20m with a big-parallel builder.
157
requiredSystemFeatures = [ "big-parallel" ];
158
159
-
passthru.tests.clickhouse = nixosTests.clickhouse;
0
0
0
0
0
0
160
161
meta = with lib; {
162
homepage = "https://clickhouse.com";
···
2
lts ? false,
3
version,
4
hash,
5
+
nixUpdateExtraArgs ? [ ],
6
}:
7
8
{
···
24
rustc,
25
cargo,
26
rustPlatform,
27
+
nix-update-script,
28
}:
29
30
llvmPackages_19.stdenv.mkDerivation (finalAttrs: {
···
158
# Builds in 7+h with 2 cores, and ~20m with a big-parallel builder.
159
requiredSystemFeatures = [ "big-parallel" ];
160
161
+
passthru = {
162
+
tests.clickhouse = nixosTests.clickhouse;
163
+
164
+
updateScript = nix-update-script {
165
+
extraArgs = nixUpdateExtraArgs;
166
+
};
167
+
};
168
169
meta = with lib; {
170
homepage = "https://clickhouse.com";
+6
pkgs/by-name/cl/clickhouse/lts.nix
···
2
version = "25.3.5.42-lts";
3
hash = "sha256-LvGl9XJK6Emt7HnV/Orp7qEmJSr3TBJZtApL6GrWIMg=";
4
lts = true;
0
0
0
0
0
0
5
}
···
2
version = "25.3.5.42-lts";
3
hash = "sha256-LvGl9XJK6Emt7HnV/Orp7qEmJSr3TBJZtApL6GrWIMg=";
4
lts = true;
5
+
nixUpdateExtraArgs = [
6
+
"--version-regex"
7
+
"^v?(.*-lts)$"
8
+
"--override-filename"
9
+
"pkgs/by-name/cl/clickhouse/lts.nix"
10
+
];
11
}
+6
pkgs/by-name/cl/clickhouse/package.nix
···
2
version = "25.5.6.14-stable";
3
hash = "sha256-gaKozR/QvvyZ3v21XEZLHV2YrhEStKuuAdOjjkd3+uc";
4
lts = false;
0
0
0
0
0
0
5
}
···
2
version = "25.5.6.14-stable";
3
hash = "sha256-gaKozR/QvvyZ3v21XEZLHV2YrhEStKuuAdOjjkd3+uc";
4
lts = false;
5
+
nixUpdateExtraArgs = [
6
+
"--version-regex"
7
+
"^v?(.*-stable)$"
8
+
"--override-filename"
9
+
"pkgs/by-name/cl/clickhouse/package.nix"
10
+
];
11
}