nixpkgs/pkgs/tools/system
Maximilian Bosch 3cd2707e37
osquery: 2.5.2 -> 3.2.2
The package was originally broken as reported in #38940 and
facebook/osquery#4257. The latest version (3.x) contains several
important fixes for GCC 7, so now we can compile without a much less
complicated patches.

The following changes were needed to fix the derivation:

* Upgrade `osquery/third-party` to the latest rev to be compliant with
  osquery 3.

* Keep using an override for the AWS SDK (for a lower closure size and
  less compile time), but make the `ec2` API available.

* Added the dependencies `fpm`, `zstd`, `rdkafka`, `rapidjson` to the
  build. `linenoise-ng` is obsolete as it's directly bundled with
  `osquery/third-party`.

* Fixed the linking issue with `gflags` as recommended in the mailing
  list: https://groups.google.com/d/msg/nix-devel/l1blj-mWxtI/J3CwPATBCAAJ

* Dropped the obsolete dependencies `cpp-netlib`, `lz4`, `apt` and
  `devicemapper` (thanks @Infinisil).

* Override `OSQUERY_PLATFORM` to provide `nixos:version`
  for sandbox and non-NixOS based builds. The `platform-nixos.patch`
  file is now obsolete (thanks @flokli).

The patch was rebased against the 3.x branch of `osquery` and contains
mostly old changes. Additionally several testing targets were skipped as
they broke the build.

The functionality has been testing using the following command:

```
mkdir /tmp/osq.log/
./result/bin/osqueryd --pidfile /tmp/osq.pid \
  --database_path /tmp/test.db --logger_path /tmp/osq.log
```

With the daemon running the database can be queried easily using
`./result/bin/osqueryi`.

Fixes ticket #38940
See ticket #36453

Further reference can be gathered from the affected Hydra logs for
the master branch: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.osquery.x86_64-linux
2018-04-24 07:13:49 +02:00
..
acct acct: 6.6.3 -> 6.6.4 2017-07-13 21:41:48 +02:00
acpica-tools acpica-tools: 20180209 -> 20180313 2018-03-18 17:09:07 +02:00
actkbd pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
amtterm amtterm: fix build 2017-09-28 17:22:48 +02:00
at at: cross-compilation fixes 2018-01-09 11:23:56 -05:00
augeas augeas: 1.10.0 -> 1.10.1 2018-02-06 06:19:01 -08:00
awstats awstats: add tools directory 2018-02-01 18:18:28 +01:00
bar bar: init at version 1.11.1 2018-03-15 09:41:25 +11:00
bfs bfs: init at 1.2.1 2018-02-11 16:19:02 +01:00
bootchart misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
chase misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
collectd collectd: kafka patch for 18.03 (#36257) 2018-03-03 17:33:48 +00:00
confd buildGoPackage: deps.json -> deps.nix in NIXON 2016-09-16 00:04:55 +01:00
consul-template consul-template: 0.18.1 -> 0.19.4 2018-02-25 17:39:14 -08:00
cron cron: fix for cross ($CC, no 'install -s') 2018-01-24 09:33:35 -06:00
ctop treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
daemonize daemonize: 1.7.7 -> 1.7.8 2018-02-25 18:46:54 -08:00
das_watchdog misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
datefudge datefudge: 1.21 => 1.22 2017-10-27 22:22:33 +02:00
dcfldd Captialize meta.description of all packages 2016-06-20 13:55:52 +02:00
dd_rescue dd_rescue: 1.99.5 -> 1.99.7 2017-11-11 15:31:41 +01:00
ddrescue ddrescue: 1.22 -> 1.23 2018-02-17 22:34:12 +02:00
dfc Update homepage attributes: http -> https 2017-08-03 11:56:15 +02:00
di di: 4.44 -> 4.45 2018-04-11 01:13:06 -07:00
dog pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
efibootmgr efibootmgr: 15 -> 16 2018-04-11 00:45:18 -07:00
efivar efivar: 34 -> 35 2018-04-12 08:22:44 -07:00
envconsul envconsul: 0.6.2 -> 0.7.3 2018-02-25 20:49:59 -08:00
evemu evemu: 2.4.0 -> 2.6.0 2017-08-24 21:20:04 +02:00
facter facter: 3.11.0 -> 3.11.1 2018-04-20 06:46:09 -07:00
fakechroot misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
fakeroot fakeroot: 1.20.2 -> 1.22 2018-02-25 21:17:47 -08:00
fcron fcron: 3.2.1 -> 3.3.0 2018-02-25 21:21:55 -08:00
fdisk Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
fio fio: 3.5 -> 3.6 2018-04-20 06:02:07 -07:00
foreman fixes bundlerEnv calls 2016-10-14 16:56:42 +01:00
foremost Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
freeipmi freeipmi: 1.5.7 -> 1.6.1 2018-02-04 10:41:36 -08:00
gdmap Merge remote-tracking branch 'upstream/staging' into deps-reorg 2017-09-28 12:32:57 -04:00
gotop gotop: init at 1.2.9 2018-04-12 16:17:11 +02:00
gptfdisk gptfdisk: Fix cross-compilation 2018-02-24 08:41:25 -05:00
gt5 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
hardinfo misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
hardlink treewide: s/pkgs.fedoraproject.org/src.fedoraproject.org/ 2018-02-08 16:38:08 -05:00
hiera-eyaml fixes bundlerEnv calls 2016-10-14 16:56:42 +01:00
honcho honcho: 0.6.6 -> 1.0.1 2017-07-25 23:22:01 -04:00
htop htop: 2.1.0 -> 2.2.0 2018-04-10 18:32:27 -04:00
hwinfo hwinfo: 21.50 -> 21.52 2018-02-26 19:01:01 -08:00
idle3tools Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
illum misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
ioping ioping: 0.9 -> 1.0 2017-02-28 20:18:28 -06:00
iops Make all meta.maintainers attributes lists 2017-01-03 18:28:20 +01:00
ior pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
ipmitool ipmitool: mark linux only 2018-04-05 20:05:25 +02:00
ipmiutil ipmiutil: 3.0.8 -> 3.0.9 2018-04-10 21:20:12 -07:00
journalbeat journalbeat: 5.6.0 -> 5.6.8 2018-03-20 18:25:52 +01:00
journalwatch pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
krakenx krakenx: init at 0.0.1 2018-03-29 12:42:54 +02:00
localtime localtime: remove dependency on go 2018-04-05 23:17:18 +01:00
logcheck logcheck: add remark to patch 2017-06-17 10:40:01 +01:00
logrotate logrotate: 3.13.0 -> 3.14.0 2018-03-14 20:40:12 -07:00
lr lr: 1.2 -> 1.3 (#38714) 2018-04-11 10:36:45 +02:00
lshw treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
mcron mcron: Fix missing libtool dependency 2018-03-17 21:50:02 -04:00
memtester memtester: fix cross build 2018-03-02 11:04:58 +00:00
minijail minijail: init at android-8.0.0_r34 2017-11-25 00:27:00 -05:00
monit Merge pull request #35248 from telent/cross-monit 2018-04-21 08:56:12 +01:00
mq-cli mq-cli: init at 1.0.0 2018-03-19 14:18:07 +01:00
netdata netdata: 1.7.0 -> 1.9.0 (#33009) 2017-12-26 16:54:06 -05:00
nq nq: 0.2.2 -> 0.3.1 2018-03-17 01:47:30 -07:00
opencl-info pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
osquery osquery: 2.5.2 -> 3.2.2 2018-04-24 07:13:49 +02:00
pciutils pciutils: enable cross compilation 2018-01-28 18:47:22 -05:00
pcstat pcstat: init at 2017-05-28 (#33643) 2018-03-12 21:51:38 +00:00
plan9port pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
procodile procodile: init at 1.0.17 2017-11-07 17:04:50 +01:00
proot Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
ps_mem ps_mem: init at 3.9 2017-06-18 18:15:42 +03:00
psensor pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
r10k r10k: use gemdir 2017-01-18 00:52:47 +01:00
rowhammer-test rowhammer-test: Broken on non-x86 (and Darwin) 2017-12-03 19:51:59 +02:00
rsyslog treewide: libmysql -> mysql.connector-c 2017-12-29 02:18:35 +01:00
runit runit: mark linux only 2018-03-25 15:03:05 +02:00
s6 update skarnet.org packages 2017-11-13 00:09:32 +01:00
s6-rc s6-rc: mark linux only 2018-04-05 20:06:05 +02:00
s-tui treewide: checkMeta fixes for x86_64-linux 2017-12-07 07:50:47 -05:00
safe-rm Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
safecopy safecopy: linux only 2017-04-09 01:29:52 -05:00
setserial treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
sg3_utils sg3_utils: mark linux only 2018-04-05 20:06:06 +02:00
sleuthkit sleuthkit: 4.5.0 -> 4.6.0 2018-02-28 20:55:12 +00:00
smartmontools smartmontools: patch from upstream project 2018-02-13 09:44:56 -06:00
socklog socklog: fixup implicit function declarations 2017-09-13 18:27:15 +02:00
storebrowse storebrowse: mark broken 2016-06-09 22:09:07 +02:00
stress stress: enable on darwin 2017-06-21 23:26:43 +02:00
stress-ng Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
suid-chroot Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
supervise supervise: 1.3.0 -> 1.4.0 2018-02-20 19:04:18 +00:00
symlinks symlinks: 1.4 -> 1.4.3 2018-01-08 15:09:20 +01:00
syslog-ng syslog-ng: enable SMTP destination 2018-03-22 19:23:19 -04:00
syslog-ng-incubator syslog-ng-incubator: 0.6.0 -> 0.6.2 2018-02-25 12:48:58 -05:00
systemd-journal2gelf SystemdJournal2Gelf: 20160414 -> 20170413 2017-08-12 10:59:21 +02:00
thermald thermald: 1.6 -> 1.7.1 2018-02-25 22:24:09 +03:00
thinkfan Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
tm pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
tree pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
ts ts: 0.7.6 -> 1.0 2018-02-28 20:33:53 +00:00
undaemonize pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
uptimed uptimed: 0.3.18 -> 0.4.0 (#23316) 2017-03-02 10:21:08 +01:00
vbetool vbetool: use stdenv 2015-12-30 21:15:15 +01:00
vboot_reference vboot_reference: 20171023 -> 20180311 2018-03-16 02:31:28 +09:00
which treewide: Do not limit hardenging because gcc 4.9 in bootstrap 2017-09-14 10:27:13 -04:00
wsmancli wsmancli: clean-ups 2017-12-24 10:03:35 +08:00
xe xe: 0.6.1 -> 0.11 2018-03-15 13:19:04 -07:00
yeshup yeshup: only build on linux 2016-08-16 19:25:46 +00:00