nixpkgs/pkgs
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
..
applications Merge pull request #39145 from geistesk/slstatus-unstable-2018-04-16 2018-04-22 16:06:07 +01:00
build-support Merge pull request #39003 from P-E-Meunier/carnix-0.7 2018-04-19 12:09:55 -05:00
common-updater
data Merge pull request #39204 from r-ryantm/auto-update/osinfo-db 2018-04-21 18:26:32 +01:00
desktops Merge pull request #39201 from r-ryantm/auto-update/pluma 2018-04-21 19:03:48 +01:00
development Merge pull request #38730 from r-ryantm/auto-update/fox 2018-04-22 16:57:16 +01:00
games Merge pull request #39237 from r-ryantm/auto-update/gzdoom 2018-04-22 13:30:25 +00:00
misc Merge pull request #39252 from r-ryantm/auto-update/cups-filters 2018-04-21 12:44:30 +01:00
os-specific Merge pull request #39122 from sorki/zfs_exportfs 2018-04-21 19:32:05 +01:00
servers Merge pull request #38889 from DerTim1/asterisk-update 2018-04-21 20:56:04 -05:00
shells pkgs/shells: move extensions to subdirs 2018-04-17 14:47:32 -05:00
stdenv Merge pull request #39172 from obsidiansystems/ios-cross 2018-04-19 17:00:05 -04:00
test
tools osquery: 2.5.2 -> 3.2.2 2018-04-24 07:13:49 +02:00
top-level Merge pull request #39123 from Infinisil/add/dust 2018-04-22 16:21:49 +01:00