···2323 fixSymlink () {
2424 local link=$1
2525 local target=$(readlink $link);
2626- local newtarget=$(sed "s@/nix/store/[^/]*/@$out/@" <<< "$target")
2626+ local newtarget=$(sed "s@${builtins.storeDir}/[^/]*/@$out/@" <<< "$target")
2727 if [[ $target != $newtarget ]] && [[ -d $newtarget ]]; then
2828 echo fixing link to point to $newtarget instead of $target
2929 rm $link
···3535 fixSymlink $out/lib/systemd/user
3636 for i in $out/share/dbus-1/services/*.service $out/lib/systemd/user/*.service; do
3737 echo fixing service file $i to point to $out
3838- sed -i "s@/nix/store/[^/]*/@$out/@" $i
3838+ sed -i "s@${builtins.storeDir}/[^/]*/@$out/@" $i
3939 done
4040 '';
4141}
+1-1
pkgs/applications/science/math/giac/default.nix
···111111 # notably texlive, and we don't want texlive to become a runtime
112112 # dependency
113113 for file in $(find $out -name Makefile) ; do
114114- sed -i "s@/nix/store/[^/]*/bin/@@" "$file" ;
114114+ sed -i "s@${builtins.storeDir}/[^/]*/bin/@@" "$file" ;
115115 done;
116116117117 # reference cycle
···176176 # Note that toString is necessary here as it results in the path at
177177 # eval time (i.e. to the file in your local Nixpkgs checkout) rather
178178 # than the Nix store path of the path after it's been imported.
179179- if lib.isPath nugetDeps && !lib.hasPrefix "/nix/store/" (toString nugetDeps)
179179+ if lib.isPath nugetDeps && !lib.hasPrefix "${builtins.storeDir}/" (toString nugetDeps)
180180 then toString nugetDeps
181181 else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")'';
182182 in
···102102 homepage = "https://godotengine.org";
103103 description = "Free and Open Source 2D and 3D game engine";
104104 license = licenses.mit;
105105- platforms = [ "i686-linux" "x86_64-linux" ];
105105+ platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
106106 maintainers = with maintainers; [ twey ];
107107 };
108108}
+1-1
pkgs/development/tools/godot/4/default.nix
···125125 homepage = "https://godotengine.org";
126126 description = "Free and Open Source 2D and 3D game engine";
127127 license = licenses.mit;
128128- platforms = [ "i686-linux" "x86_64-linux" ];
128128+ platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
129129 maintainers = with maintainers; [ twey shiryel ];
130130 };
131131}
+1-1
pkgs/games/cataclysm-dda/wrapper.nix
···3434 cp "$1" "''${1}.bk"
3535 unlink "$1"
3636 mv "''${1}.bk" "$1"
3737- sed -i "$1" -e "s,/nix/store/.\+\(/bin/cataclysm-tiles\),$out\1,"
3737+ sed -i "$1" -e "s,${builtins.storeDir}/.\+\(/bin/cataclysm-tiles\),$out\1,"
3838 }
3939 for script in "$out/share/applications/cataclysm-dda.desktop" \
4040 "$out/Applications/Cataclysm.app/Contents/MacOS/Cataclysm.sh"
+1-1
pkgs/os-specific/linux/sysdig/default.nix
···115115 + lib.optionalString (kernel != null) ''
116116 make install_driver
117117 kernel_dev=${kernel.dev}
118118- kernel_dev=''${kernel_dev#/nix/store/}
118118+ kernel_dev=''${kernel_dev#${builtins.storeDir}/}
119119 kernel_dev=''${kernel_dev%%-linux*dev*}
120120 if test -f "$out/lib/modules/${kernel.modDirVersion}/extra/scap.ko"; then
121121 sed -i "s#$kernel_dev#................................#g" $out/lib/modules/${kernel.modDirVersion}/extra/scap.ko
+2-2
pkgs/os-specific/linux/systemd/default.nix
···312312 if dl.pkg == null then ''
313313 # remove the dependency on the library by replacing it with an invalid path
314314 for file in $(grep -lr '"${dl.name}"' src); do
315315- echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
316316- substituteInPlace "$file" --replace '"${dl.name}"' '"/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
315315+ echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
316316+ substituteInPlace "$file" --replace '"${dl.name}"' '"${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
317317 done
318318 '' else ''
319319 # ensure that the library we provide actually exists