summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-03-23 19:34:04 +0200
committerArtturin <Artturin@artturin.com>2023-03-24 20:11:33 +0200
commit780669daf57856d62e672de050324a75f1a66c81 (patch)
treec3b1960b1246885dc7e4c824b1ac909543623df5 /pkgs/os-specific/linux/systemd/default.nix
parent3b7218e93db3e24fec777da4cbb2891c7012052d (diff)
downloadnixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.gz
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.bz2
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.lz
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.xz
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.zst
nixpkgs-780669daf57856d62e672de050324a75f1a66c81.zip
treewide: don't hardcode /nix/store (no rebuilds changes)
improve experience for other store locations
Diffstat (limited to 'pkgs/os-specific/linux/systemd/default.nix')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 9dda9cd2d4a..08333aa8a14 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -304,8 +304,8 @@ stdenv.mkDerivation (finalAttrs: {
         if dl.pkg == null then ''
           # remove the dependency on the library by replacing it with an invalid path
           for file in $(grep -lr '"${dl.name}"' src); do
-            echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
-            substituteInPlace "$file" --replace '"${dl.name}"' '"/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
+            echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
+            substituteInPlace "$file" --replace '"${dl.name}"' '"${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
           done
         '' else ''
           # ensure that the library we provide actually exists