blob: 77dd41db7f6d9029c2f1fedbe73f55a3f4e74d89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, fetchFromGitHub
, buildPgrxExtension
, postgresql
, nixosTests
, cargo-pgrx
, fetchCrate
, nix-update-script
, stdenv
}:
let
cargo-pgrx_0_10_2 = cargo-pgrx.overrideAttrs (old: rec {
name = "cargo-pgrx-${version}";
version = "0.10.2";
src = fetchCrate {
pname = "cargo-pgrx";
inherit version;
hash = "sha256-FqjfbJmSy5UCpPPPk4bkEyvQCnaH9zYtkI7txgIn+ls=";
};
cargoDeps = old.cargoDeps.overrideAttrs (_: {
inherit src;
outputHash = "sha256-XyI3RaPI3Edm/tCP2xoZemib2d2n2cAhobgk9Oafg6s=";
});
});
in
(buildPgrxExtension.override { cargo-pgrx = cargo-pgrx_0_10_2; }) rec {
inherit postgresql;
pname = "timescaledb_toolkit";
version = "1.18.0";
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb-toolkit";
rev = version;
hash = "sha256-Lm/LFBkG91GeWlJL9RBqP8W0tlhBEeGQ6kXUzzv4xRE=";
};
cargoHash = "sha256-LME8oftHmmiN8GU3eTBTSB6m0CE+KtDFRssL1g2Cjm8=";
buildAndTestSubdir = "extension";
passthru = {
updateScript = nix-update-script { };
tests = {
timescaledb_toolkit = nixosTests.timescaledb;
};
};
# tests take really long
doCheck = false;
meta = with lib; {
description = "Provide additional tools to ease all things analytic when using TimescaleDB";
homepage = "https://github.com/timescale/timescaledb-toolkit";
maintainers = with maintainers; [ typetetris ];
platforms = postgresql.meta.platforms;
license = licenses.asl20;
# as it needs to be used with timescaledb, simply use the condition from there
broken = stdenv.isDarwin;
};
}
|