aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/personality.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-23 16:28:26 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-12-23 16:33:55 +0100
commitc164d304f3cd6c5e536e33435084c030f018c2ab (patch)
treef748d194dff9eb2c82e4fdb512729bc2c203587d /src/libstore/build/personality.hh
parentc9eee5a84d91e974b09623e01d12586e7026f1ce (diff)
nix develop: Set personality
This makes 'nix develop' set the Linux personality in the same way that the actual build does, allowing a command like 'nix develop nix#devShells.i686-linux.default' on x86_64-linux to work correctly.
Diffstat (limited to 'src/libstore/build/personality.hh')
-rw-r--r--src/libstore/build/personality.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstore/build/personality.hh b/src/libstore/build/personality.hh
new file mode 100644
index 000000000..30e4f4062
--- /dev/null
+++ b/src/libstore/build/personality.hh
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <string>
+
+namespace nix {
+
+void setPersonality(std::string_view system);
+
+}
+
+