osquery: use stdenv.lib.nixpkgsVersion

This way easier to understand and the officially recommended approach.

/cc @dezgeg @fpletz
This commit is contained in:
Maximilian Bosch 2018-04-24 20:30:12 +02:00
parent 9f2b67d89b
commit f66cdc71a3
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
# this is what `osquery --help` will show as the version.
OSQUERY_BUILD_VERSION = version;
OSQUERY_PLATFORM = "nixos;${builtins.readFile "${toString path}/.version"}";
OSQUERY_PLATFORM = "nixos;${stdenv.lib.nixpkgsVersion}";
src = fetchFromGitHub {
owner = "facebook";