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
];
32
33
postPatch = ''
34
-
while IFS="" read -r -d $'\0' FILE; do
35
substituteInPlace "$FILE" \
36
-
--replace "/sbin/blkid" "${util-linux}/bin/blkid"
37
-
done < <(find ./src -mindepth 1 -name "*.vala" -type f -print0)
0
38
substituteInPlace ./src/Utility/IconManager.vala \
39
-
--replace "/usr/share" "$out/share"
40
'';
41
42
nativeBuildInputs = [
···
31
];
32
33
postPatch = ''
34
+
for FILE in src/Core/Main.vala src/Utility/Device.vala; do
35
substituteInPlace "$FILE" \
36
+
--replace-fail "/sbin/blkid" "${lib.getExe' util-linux "blkid"}"
37
+
done
38
+
39
substituteInPlace ./src/Utility/IconManager.vala \
40
+
--replace-fail "/usr/share" "$out/share"
41
'';
42
43
nativeBuildInputs = [