clickhouse: Add nix-update-script

+21 -1
+9 -1
pkgs/by-name/cl/clickhouse/generic.nix
··· 2 lts ? false, 3 version, 4 hash, 5 }: 6 7 { ··· 23 rustc, 24 cargo, 25 rustPlatform, 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; 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; 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; 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 }