nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.4 kB view raw
1{ 2 buildPgrxExtension, 3 cargo-pgrx_0_12_6, 4 fetchFromGitHub, 5 lib, 6 nix-update-script, 7 postgresql, 8}: 9 10buildPgrxExtension (finalAttrs: { 11 inherit postgresql; 12 cargo-pgrx = cargo-pgrx_0_12_6; 13 14 pname = "timescaledb_toolkit"; 15 version = "1.21.0"; 16 17 src = fetchFromGitHub { 18 owner = "timescale"; 19 repo = "timescaledb-toolkit"; 20 tag = finalAttrs.version; 21 hash = "sha256-gGGSNvvJprqLkVwPr7cfmGY1qEUTXMdqdvwPYIzXaTA="; 22 }; 23 24 cargoHash = "sha256-kyUpfNEXJ732VO6JDxU+dIoL57uWzG4Ff03/GnvsxLE="; 25 buildAndTestSubdir = "extension"; 26 27 postInstall = '' 28 cargo run --manifest-path ./tools/post-install/Cargo.toml -- --dir "$out" 29 ''; 30 31 passthru = { 32 updateScript = nix-update-script { }; 33 tests = postgresql.pkgs.timescaledb.tests; 34 }; 35 36 # tests take really long 37 doCheck = false; 38 39 meta = { 40 description = "Provide additional tools to ease all things analytic when using TimescaleDB"; 41 homepage = "https://github.com/timescale/timescaledb-toolkit"; 42 maintainers = with lib.maintainers; [ typetetris ]; 43 platforms = postgresql.meta.platforms; 44 license = lib.licenses.tsl; 45 broken = 46 lib.versionOlder postgresql.version "15" 47 || 48 # Check after next package update. 49 lib.warnIf (finalAttrs.version != "1.21.0") 50 "Is postgresql18Packages.timescaledb_toolkit still broken?" 51 (lib.versionAtLeast postgresql.version "18"); 52 }; 53})