···23 fixSymlink () {
24 local link=$1
25 local target=$(readlink $link);
26- local newtarget=$(sed "s@/nix/store/[^/]*/@$out/@" <<< "$target")
27 if [[ $target != $newtarget ]] && [[ -d $newtarget ]]; then
28 echo fixing link to point to $newtarget instead of $target
29 rm $link
···35 fixSymlink $out/lib/systemd/user
36 for i in $out/share/dbus-1/services/*.service $out/lib/systemd/user/*.service; do
37 echo fixing service file $i to point to $out
38- sed -i "s@/nix/store/[^/]*/@$out/@" $i
39 done
40 '';
41}
···23 fixSymlink () {
24 local link=$1
25 local target=$(readlink $link);
26+ local newtarget=$(sed "s@${builtins.storeDir}/[^/]*/@$out/@" <<< "$target")
27 if [[ $target != $newtarget ]] && [[ -d $newtarget ]]; then
28 echo fixing link to point to $newtarget instead of $target
29 rm $link
···35 fixSymlink $out/lib/systemd/user
36 for i in $out/share/dbus-1/services/*.service $out/lib/systemd/user/*.service; do
37 echo fixing service file $i to point to $out
38+ sed -i "s@${builtins.storeDir}/[^/]*/@$out/@" $i
39 done
40 '';
41}
+1-1
pkgs/applications/science/math/giac/default.nix
···111 # notably texlive, and we don't want texlive to become a runtime
112 # dependency
113 for file in $(find $out -name Makefile) ; do
114- sed -i "s@/nix/store/[^/]*/bin/@@" "$file" ;
115 done;
116117 # reference cycle
···111 # notably texlive, and we don't want texlive to become a runtime
112 # dependency
113 for file in $(find $out -name Makefile) ; do
114+ sed -i "s@${builtins.storeDir}/[^/]*/bin/@@" "$file" ;
115 done;
116117 # reference cycle
···176 # Note that toString is necessary here as it results in the path at
177 # eval time (i.e. to the file in your local Nixpkgs checkout) rather
178 # than the Nix store path of the path after it's been imported.
179- if lib.isPath nugetDeps && !lib.hasPrefix "/nix/store/" (toString nugetDeps)
180 then toString nugetDeps
181 else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")'';
182 in
···176 # Note that toString is necessary here as it results in the path at
177 # eval time (i.e. to the file in your local Nixpkgs checkout) rather
178 # than the Nix store path of the path after it's been imported.
179+ if lib.isPath nugetDeps && !lib.hasPrefix "${builtins.storeDir}/" (toString nugetDeps)
180 then toString nugetDeps
181 else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")'';
182 in
···102 homepage = "https://godotengine.org";
103 description = "Free and Open Source 2D and 3D game engine";
104 license = licenses.mit;
105- platforms = [ "i686-linux" "x86_64-linux" ];
106 maintainers = with maintainers; [ twey ];
107 };
108}
···102 homepage = "https://godotengine.org";
103 description = "Free and Open Source 2D and 3D game engine";
104 license = licenses.mit;
105+ platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
106 maintainers = with maintainers; [ twey ];
107 };
108}
+1-1
pkgs/development/tools/godot/4/default.nix
···125 homepage = "https://godotengine.org";
126 description = "Free and Open Source 2D and 3D game engine";
127 license = licenses.mit;
128- platforms = [ "i686-linux" "x86_64-linux" ];
129 maintainers = with maintainers; [ twey shiryel ];
130 };
131}
···125 homepage = "https://godotengine.org";
126 description = "Free and Open Source 2D and 3D game engine";
127 license = licenses.mit;
128+ platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
129 maintainers = with maintainers; [ twey shiryel ];
130 };
131}
+1-1
pkgs/games/cataclysm-dda/wrapper.nix
···34 cp "$1" "''${1}.bk"
35 unlink "$1"
36 mv "''${1}.bk" "$1"
37- sed -i "$1" -e "s,/nix/store/.\+\(/bin/cataclysm-tiles\),$out\1,"
38 }
39 for script in "$out/share/applications/cataclysm-dda.desktop" \
40 "$out/Applications/Cataclysm.app/Contents/MacOS/Cataclysm.sh"
···34 cp "$1" "''${1}.bk"
35 unlink "$1"
36 mv "''${1}.bk" "$1"
37+ sed -i "$1" -e "s,${builtins.storeDir}/.\+\(/bin/cataclysm-tiles\),$out\1,"
38 }
39 for script in "$out/share/applications/cataclysm-dda.desktop" \
40 "$out/Applications/Cataclysm.app/Contents/MacOS/Cataclysm.sh"
+1-1
pkgs/os-specific/linux/sysdig/default.nix
···115 + lib.optionalString (kernel != null) ''
116 make install_driver
117 kernel_dev=${kernel.dev}
118- kernel_dev=''${kernel_dev#/nix/store/}
119 kernel_dev=''${kernel_dev%%-linux*dev*}
120 if test -f "$out/lib/modules/${kernel.modDirVersion}/extra/scap.ko"; then
121 sed -i "s#$kernel_dev#................................#g" $out/lib/modules/${kernel.modDirVersion}/extra/scap.ko
···115 + lib.optionalString (kernel != null) ''
116 make install_driver
117 kernel_dev=${kernel.dev}
118+ kernel_dev=''${kernel_dev#${builtins.storeDir}/}
119 kernel_dev=''${kernel_dev%%-linux*dev*}
120 if test -f "$out/lib/modules/${kernel.modDirVersion}/extra/scap.ko"; then
121 sed -i "s#$kernel_dev#................................#g" $out/lib/modules/${kernel.modDirVersion}/extra/scap.ko
+2-2
pkgs/os-specific/linux/systemd/default.nix
···312 if dl.pkg == null then ''
313 # remove the dependency on the library by replacing it with an invalid path
314 for file in $(grep -lr '"${dl.name}"' src); do
315- echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
316- substituteInPlace "$file" --replace '"${dl.name}"' '"/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
317 done
318 '' else ''
319 # ensure that the library we provide actually exists
···312 if dl.pkg == null then ''
313 # remove the dependency on the library by replacing it with an invalid path
314 for file in $(grep -lr '"${dl.name}"' src); do
315+ echo "patching dlopen(\"${dl.name}\", …) in $file to an invalid store path ("${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}")…"
316+ substituteInPlace "$file" --replace '"${dl.name}"' '"${builtins.storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-not-implemented/${dl.name}"'
317 done
318 '' else ''
319 # ensure that the library we provide actually exists