12 src = fetchFromGitHub {
16 hash = "sha256-JizUI9XRzOEHF1kAblYQRYB11z9KWX7od3lPiRN+JNI=";
19 vendorHash = "sha256-lnyKsipr/f9W9LWLb2lizKGLvIbS3XnSlOH1u1B87OY=";
24 "-X github.com/timescale/promscale/pkg/version.Version=${version}"
25 "-X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}"
28 # Without this build fails with
29 # main module (github.com/timescale/promscale) does not contain package github.com/timescale/promscale/migration-tool/cmd/prom-migrator
35 # some checks requires access to a docker daemon
36 for pkg in $(getGoDirs test | grep -Ev 'testhelpers|upgrade_tests|end_to_end_tests|util'); do
37 buildGoDir test $checkFlags "$pkg"
43 passthru.tests.version = testers.testVersion {
45 command = "promscale -version";
49 description = "Open-source analytical platform for Prometheus metrics";
50 mainProgram = "promscale";
51 homepage = "https://github.com/timescale/promscale";
52 changelog = "https://github.com/timescale/promscale/blob/${version}/CHANGELOG.md";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ _0x4A6F anpin ];