mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #14228 from obsidiansystems/fix-windows-build
Fix windows build
This commit is contained in:
commit
4f585dedbe
2 changed files with 13 additions and 19 deletions
|
|
@ -495,7 +495,9 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
||||||
Magenta(
|
Magenta(
|
||||||
"/usr/sbin/softwareupdate --install-rosetta && launchctl stop org.nixos.nix-daemon"));
|
"/usr/sbin/softwareupdate --install-rosetta && launchctl stop org.nixos.nix-daemon"));
|
||||||
|
|
||||||
|
#ifndef _WIN32 // TODO enable `DerivationBuilder` on Windows
|
||||||
builder.reset();
|
builder.reset();
|
||||||
|
#endif
|
||||||
outputLocks.unlock();
|
outputLocks.unlock();
|
||||||
worker.permanentFailure = true;
|
worker.permanentFailure = true;
|
||||||
co_return doneFailure({BuildResult::Failure::InputRejected, std::move(msg)});
|
co_return doneFailure({BuildResult::Failure::InputRejected, std::move(msg)});
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
mkMesonDerivation,
|
mkMesonDerivation,
|
||||||
|
buildPackages,
|
||||||
meson,
|
|
||||||
ninja,
|
|
||||||
pkg-config,
|
|
||||||
|
|
||||||
jq,
|
|
||||||
git,
|
|
||||||
mercurial,
|
|
||||||
util-linux,
|
|
||||||
unixtools,
|
|
||||||
|
|
||||||
nix-store,
|
nix-store,
|
||||||
nix-expr,
|
nix-expr,
|
||||||
|
|
@ -46,16 +37,17 @@ mkMesonDerivation (
|
||||||
./.
|
./.
|
||||||
];
|
];
|
||||||
|
|
||||||
# Hack for sake of the dev shell
|
# Hack for sake of the dev shell. Need to "manually splice" since
|
||||||
|
# this isn't a specially-recognized list of dependencies.
|
||||||
passthru.externalNativeBuildInputs = [
|
passthru.externalNativeBuildInputs = [
|
||||||
meson
|
buildPackages.meson
|
||||||
ninja
|
buildPackages.ninja
|
||||||
pkg-config
|
buildPackages.pkg-config
|
||||||
|
|
||||||
jq
|
buildPackages.jq
|
||||||
git
|
buildPackages.git
|
||||||
mercurial
|
buildPackages.mercurial
|
||||||
unixtools.script
|
buildPackages.unixtools.script
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
# For various sandboxing tests that needs a statically-linked shell,
|
# For various sandboxing tests that needs a statically-linked shell,
|
||||||
|
|
@ -64,7 +56,7 @@ mkMesonDerivation (
|
||||||
# For Overlay FS tests need `mount`, `umount`, and `unshare`.
|
# For Overlay FS tests need `mount`, `umount`, and `unshare`.
|
||||||
# For `script` command (ensuring a TTY)
|
# For `script` command (ensuring a TTY)
|
||||||
# TODO use `unixtools` to be precise over which executables instead?
|
# TODO use `unixtools` to be precise over which executables instead?
|
||||||
util-linux
|
buildPackages.util-linux
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = finalAttrs.passthru.externalNativeBuildInputs ++ [
|
nativeBuildInputs = finalAttrs.passthru.externalNativeBuildInputs ++ [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue