nixpkgs/pkgs/tools
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
..
admin simp_le: drop upper bound of acme requirement (#39263) 2018-04-20 19:40:38 +02:00
archivers innoextract: support extraction of multi-file archives 2018-04-09 15:14:27 +08:00
audio Merge pull request #39198 from r-ryantm/auto-update/playerctl 2018-04-21 19:02:20 +01:00
backup Merge pull request #39029 from r-ryantm/auto-update/znapzend 2018-04-18 22:21:42 -05:00
bluetooth openobex: 1.7.1 -> 1.7.2 2018-02-28 11:32:38 +01:00
bootloaders/refind refind: 0.10.3 -> 0.11.2 2018-01-09 22:57:04 -05:00
cd-dvd Merge pull request #36885 from obsidiansystems/meta-host-prepare 2018-03-12 19:06:35 -04:00
compression Merge pull request #38865 from matthewbauer/darwin-security-fixes 2018-04-12 14:27:00 -05:00
filesystems Revert "hfsprogs: init at 332.25" 2018-04-17 12:40:16 -05:00
graphics Merge pull request #39280 from r-ryantm/auto-update/asymptote 2018-04-20 22:01:43 +02:00
inputmethods ibus-engines.libpinyin: 1.9.3 -> 1.10.0 2018-04-20 04:51:53 -07:00
misc Merge pull request #39123 from Infinisil/add/dust 2018-04-22 16:21:49 +01:00
networking i2p: 0.9.33 -> 0.9.34 2018-04-21 14:57:44 +02:00
nix/info nix-info: build locally 2018-01-21 14:09:35 +01:00
package-management Revert "nix-pin: 0.1.2 -> 0.2.2" 2018-04-22 16:43:27 +01:00
security Merge pull request #39236 from ckauhaus/vulnix-update-1.6 2018-04-21 12:08:25 +01:00
system osquery: 2.5.2 -> 3.2.2 2018-04-24 07:13:49 +02:00
text relax platform restriction 2018-04-18 11:25:23 +09:00
typesetting Merge pull request #39293 from FRidh/asciidoctor 2018-04-22 08:32:34 +02:00
video untrunc: init at 2018.01.13 2018-03-01 20:30:48 +01:00
virtualization Merge pull request #32992 from nh2/fix-32545-blocking-container-destroy 2018-03-12 21:27:50 +00:00
X11 Switch suckless.org URLs to https 2018-04-11 15:11:55 +02:00