about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2024-04-16 11:41:02 +0200
committersternenseemann <sternenseemann@systemli.org>2024-04-16 18:05:08 +0200
commit06c817b2acf67a707a1df00032d22311641deee8 (patch)
tree6dcb43438856a6a3b22e4051a6f7a8bb71ff9e93 /pkgs
parent4b46c7e8eb051752d5a43b985e3c76f9fe0aeb7c (diff)
s6-rc: use --replace-fail for cross substitutions
We would probably prefer a warning if an additional header is added we
need to substitute, but that is practically impossible…
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/skaware-packages/s6-rc/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/skaware-packages/s6-rc/default.nix b/pkgs/development/skaware-packages/s6-rc/default.nix
index edfc12f23271c..8ccdd867688f5 100644
--- a/pkgs/development/skaware-packages/s6-rc/default.nix
+++ b/pkgs/development/skaware-packages/s6-rc/default.nix
@@ -50,9 +50,9 @@ skawarePackages.buildPackage {
   # system we're cross-compiling for.
   postConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform) ''
     substituteInPlace src/s6-rc/s6-rc-compile.c \
-        --replace '<execline/config.h>' '"${targetPackages.execline.dev}/include/execline/config.h"' \
-        --replace '<s6/config.h>' '"${targetPackages.s6.dev}/include/s6/config.h"' \
-        --replace '<s6-rc/config.h>' '"${targetPackages.s6-rc.dev}/include/s6-rc/config.h"'
+        --replace-fail '<execline/config.h>' '"${targetPackages.execline.dev}/include/execline/config.h"' \
+        --replace-fail '<s6/config.h>' '"${targetPackages.s6.dev}/include/s6/config.h"' \
+        --replace-fail '<s6-rc/config.h>' '"${targetPackages.s6-rc.dev}/include/s6-rc/config.h"'
   '';
 
   postInstall = ''