osquery: use `stdenv.lib.nixpkgsVersion`
This way easier to understand and the officially recommended approach.
/cc @dezgeg @fpletz
commitf66cdc71a3300581501fd953f8e359b7ff824933
authorMaximilian Bosch <maximilian@mbosch.me>
dateTue 24 Apr 2018, 20:30 (9 years ago)
parent9f2b67d
pkgs/tools/system/osquery/default.nix+1−1
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424
2525 # this is what `osquery --help` will show as the version.
2626 OSQUERY_BUILD_VERSION = version;
27− OSQUERY_PLATFORM = "nixos;${builtins.readFile "${toString path}/.version"}";
27+ OSQUERY_PLATFORM = "nixos;${stdenv.lib.nixpkgsVersion}";
2828
2929 src = fetchFromGitHub {
3030 owner = "facebook";