diff --git a/package.nix b/package.nix index 129a4319c..01155b1ea 100644 --- a/package.nix +++ b/package.nix @@ -208,8 +208,6 @@ stdenv.mkDerivation (finalAttrs: { ); }; - VERSION_SUFFIX = versionSuffix; - outputs = [ "out" ] ++ lib.optionals (!finalAttrs.dontBuild) [ @@ -336,9 +334,9 @@ stdenv.mkDerivation (finalAttrs: { disallowedReferences = [ boost ]; - # Needed for Meson to find Boost. - # https://github.com/NixOS/nixpkgs/issues/86131. env = { + # Needed for Meson to find Boost. + # https://github.com/NixOS/nixpkgs/issues/86131. BOOST_INCLUDEDIR = "${lib.getDev boost}/include"; BOOST_LIBRARYDIR = "${lib.getLib boost}/lib"; @@ -346,6 +344,8 @@ stdenv.mkDerivation (finalAttrs: { # Turns out the Nix-generated Cargo dependencies are named the same as they # would be in a Cargo registry cache. MESON_PACKAGE_CACHE_DIR = finalAttrs.cargoDeps; + + VERSION_SUFFIX = versionSuffix; }; cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };