summary refs log tree commit diff
path: root/lib/systems/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-04-17 16:41:33 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-04-19 12:03:44 -0400
commit23560ea057024811dfeea8be0b7bd9b7a3d63b31 (patch)
tree727a385d963f9e0c51c8f5c336dc90a39b06da13 /lib/systems/default.nix
parentdd584d8eeb8c76d82cbac50ace0f7a08586a31e9 (diff)
downloadnixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar.gz
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar.bz2
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar.lz
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar.xz
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.tar.zst
nixpkgs-23560ea057024811dfeea8be0b7bd9b7a3d63b31.zip
systems: fix emulator identity
Squashed to fix shell quoting, thanks @Ericson2314
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r--lib/systems/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index 52b9bd46e60..dd4f85c17cb 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -103,7 +103,7 @@ rec {
       in
         if final.parsed.kernel.name == pkgs.stdenv.hostPlatform.parsed.kernel.name &&
            pkgs.stdenv.hostPlatform.isCompatible final
-        then "${pkgs.runtimeShell} -c"
+        then "${pkgs.runtimeShell} -c '\"$@\"' --"
         else if final.isWindows
         then "${wine}/bin/${wine-name}"
         else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux