From 828d09b98a78deeac065fac481b86ad5668b6af7 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 26 Aug 2023 12:50:01 -0700 Subject: [PATCH] Rearrange sed replacement --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 86e058a..ce041b8 100644 --- a/flake.nix +++ b/flake.nix @@ -63,7 +63,7 @@ rust-project TODO: write shell script for automatically updating `cargoHash` buildAndTestSubdir = "status_cloud"; cargoHash = "sha256-mMxHI/rU1Gd5UR+hZ+5+FnBrff8uF+SrEvGJT7wh5tI="; preBuild = '' - sed -i 's/Command::new("hddtemp")/${nixpkgs.lib.escape [ "/" ] "Command::new(\"${pkgs.hddtemp}\")"}/g' status_cloud/src/main.rs + sed -i 's/Command::new("hddtemp")/Command::new("${nixpkgs.lib.escape [ "/" ] "${pkgs.hddtemp}"}")/g' status_cloud/src/main.rs ''; meta = meta // { description = "Server status saved to a nextcloud note service.";