aboutsummaryrefslogtreecommitdiff
path: root/nix/scripts/substitute-binary.in
diff options
context:
space:
mode:
Diffstat (limited to 'nix/scripts/substitute-binary.in')
-rw-r--r--nix/scripts/substitute-binary.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/nix/scripts/substitute-binary.in b/nix/scripts/substitute-binary.in
new file mode 100644
index 0000000000..48d7bb8ff1
--- /dev/null
+++ b/nix/scripts/substitute-binary.in
@@ -0,0 +1,11 @@
+#!@SHELL@
+# A shorthand for "guix substitute-binary", for use by the daemon.
+
+if test "x$GUIX_UNINSTALLED" = "x"
+then
+ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ exec "@bindir@/guix" substitute-binary "$@"
+else
+ exec guix substitute-binary "$@"
+fi