tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
timeshift: use substituteInPlace --replace-fail
Yueh-Shun Li
1 year ago
cb41be55
5c8a2cab
+5
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
backup
timeshift
unwrapped.nix
+5
-4
pkgs/applications/backup/timeshift/unwrapped.nix
···
31
31
];
32
32
33
33
postPatch = ''
34
34
-
while IFS="" read -r -d $'\0' FILE; do
34
34
+
for FILE in src/Core/Main.vala src/Utility/Device.vala; do
35
35
substituteInPlace "$FILE" \
36
36
-
--replace "/sbin/blkid" "${util-linux}/bin/blkid"
37
37
-
done < <(find ./src -mindepth 1 -name "*.vala" -type f -print0)
36
36
+
--replace-fail "/sbin/blkid" "${lib.getExe' util-linux "blkid"}"
37
37
+
done
38
38
+
38
39
substituteInPlace ./src/Utility/IconManager.vala \
39
39
-
--replace "/usr/share" "$out/share"
40
40
+
--replace-fail "/usr/share" "$out/share"
40
41
'';
41
42
42
43
nativeBuildInputs = [