git.iko.soy/typeable/nixpkgs
on master help sign in
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>

commit47b3086bdf59a4df366550185863a149392d55fe authorAustin Seipp <aseipp@pobox.com> dateSat 17 Nov 2018, 22:10 (8 years ago) parent3e02311
1 file changed+4−1
pkgs/servers/foundationdb/default.nix+4−1
pkgs/servers/foundationdb/default.nix+4−1
@@ -37,6 +37,9 @@ let
3737 # in theory newer versions of fdb support newer boost versions, but they
3838 # don't :( maybe one day
3939 , boost ? boost152
40+
41+ # if an release is unofficial/a prerelease, then make sure this is set
42+ , officialRelease ? true
4043 }: stdenv.mkDerivation rec {
4144 name = "foundationdb-${version}";
4245 inherit version;
@@ -109,7 +112,7 @@ let
109112 # Needed environment overrides
110113 ++ [ "KVRELEASE=1"
111114 "NOSTRIP=1"
112− ];
115+ ] ++ lib.optional officialRelease [ "RELEASE=true" ];
113116
114117 # on 6.0 and later, we can specify all this information manually
115118 configurePhase = lib.optionalString (lib.versionAtLeast version "6.0") ''