From 47b3086bdf59a4df366550185863a149392d55fe Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sat, 17 Nov 2018 22:10:12 -0600 Subject: foundationdb: set RELEASE=true for official builds This ensures the proper version is reported in the server status information; otherwise it has a '-PRERELEASE' suffix. Signed-off-by: Austin Seipp --- pkgs/servers/foundationdb/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/servers/foundationdb') diff --git a/pkgs/servers/foundationdb/default.nix b/pkgs/servers/foundationdb/default.nix index 66f71e71d99..8af94d4f2d9 100644 --- a/pkgs/servers/foundationdb/default.nix +++ b/pkgs/servers/foundationdb/default.nix @@ -37,6 +37,9 @@ let # in theory newer versions of fdb support newer boost versions, but they # don't :( maybe one day , boost ? boost152 + + # if an release is unofficial/a prerelease, then make sure this is set + , officialRelease ? true }: stdenv.mkDerivation rec { name = "foundationdb-${version}"; inherit version; @@ -109,7 +112,7 @@ let # Needed environment overrides ++ [ "KVRELEASE=1" "NOSTRIP=1" - ]; + ] ++ lib.optional officialRelease [ "RELEASE=true" ]; # on 6.0 and later, we can specify all this information manually configurePhase = lib.optionalString (lib.versionAtLeast version "6.0") '' -- cgit 1.4.1