-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcitus.nix
50 lines (44 loc) · 958 Bytes
/
citus.nix
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
{ llvmPackages
, autoreconfHook
, postgresql
, curl
, fetchFromGitHub
, lz4
, zstd
, lib
}:
llvmPackages.stdenv.mkDerivation rec {
pname = "citus";
version = "11.0.2";
src = fetchFromGitHub {
owner = "citusdata";
repo = "citus";
rev = "v${version}";
sha256 = "3GlVCIfjdkjxz1wWIop5SSlx6zSWfQbLotvpo5s+3YU=";
fetchSubmodules = false;
};
buildInputs = [
postgresql
curl
lz4
zstd.out
];
nativeBuildInputs = [
autoreconfHook
zstd.dev
llvmPackages.llvm
];
# dirty hack to give us a clean install tree
installPhase = ''
make install DESTDIR=$NIX_BUILD_TOP/citus-destdir
mkdir -p $out
mv $NIX_BUILD_TOP/citus-destdir/nix/store/*/* $out
'';
meta = with lib; {
description = "Postgres Clustering";
homepage = "https://www.citusdata.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ mkg20001 ];
inherit (postgresql.meta) platforms;
};
}