-
Notifications
You must be signed in to change notification settings - Fork 3
/
kolide-launcher.nix
47 lines (40 loc) · 1.1 KB
/
kolide-launcher.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
{ autoPatchelfHook
, fetchzip
, lib
, stdenv
}:
stdenv.mkDerivation rec {
pname = "kolide-launcher";
version = "1.12.3";
src = fetchzip {
url = "https://dl.kolide.co/kolide/launcher/linux/amd64/launcher-${version}.tar.gz";
sha256 = "sha256-shJMPtz3txgRRw0sc9bNgYUy9cw9TkVGYI/nAO6TbDg=";
name = "launcher";
};
osqSrc = fetchzip {
url = "https://dl.kolide.co/kolide/osqueryd/linux/amd64/osqueryd-5.14.1.tar.gz";
sha256 = "sha256-rcmoXshD9pwaTN2dgJm9ZmuCuNQkPgLxghtMGYfhfYE=";
name = "osqueryd";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [];
installPhase = ''
mkdir -p $out/bin
cp launcher $out/bin
cp $osqSrc/osqueryd $out/bin
'';
meta = with lib; {
homepage = "https://www.kolide.com";
description = "Kolide Endpoint Agent";
platforms = [ "x86_64-linux" ];
license = {
fullName = "The Kolide Enterprise Edition (EE) license";
url = "https://github.com/kolide/launcher/blob/main/LICENSE";
free = false;
redistributable = false;
};
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}