lact: use --replace-fail

This commit is contained in:
Atemu 2024-11-17 03:05:59 +01:00
parent be8bf5440a
commit 97a043ae9a

View File

@ -45,13 +45,13 @@ rustPlatform.buildRustPackage rec {
postPatch = ''
substituteInPlace lact-daemon/src/server/system.rs \
--replace 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'
--replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'
substituteInPlace res/lactd.service \
--replace ExecStart={lact,$out/bin/lact}
--replace-fail ExecStart={lact,$out/bin/lact}
substituteInPlace res/io.github.lact-linux.desktop \
--replace Exec={lact,$out/bin/lact}
--replace-fail Exec={lact,$out/bin/lact}
'';
postInstall = ''