summary refs log tree commit diff
path: root/pkgs/servers/foundationdb
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-11-17 22:10:12 -0600
committerAustin Seipp <aseipp@pobox.com>2018-11-17 22:12:40 -0600
commit47b3086bdf59a4df366550185863a149392d55fe (patch)
treecb5e46c71be1a00979c02cb3d7580660d33a9f59 /pkgs/servers/foundationdb
parent3e02311f89256f0a094c404b74d7f73adad8d0b0 (diff)
downloadnixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar.gz
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar.bz2
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar.lz
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar.xz
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.tar.zst
nixpkgs-47b3086bdf59a4df366550185863a149392d55fe.zip
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 <aseipp@pobox.com>
Diffstat (limited to 'pkgs/servers/foundationdb')
-rw-r--r--pkgs/servers/foundationdb/default.nix5
1 files changed, 4 insertions, 1 deletions
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") ''