Skip to content

Commit 476b7a0

Browse files
committed
Always use nixpkgs' sed
1 parent 41d7962 commit 476b7a0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

template/default.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ rec {
157157
# (see https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#trailing-whitespace).
158158
# So, remove the trailing newline already here to avoid that an
159159
# unnecessary change is shown in Git.
160-
if [[ "$(uname)" == "Darwin" ]]; then
161-
sed -i \"\" '$d' Cargo.nix
162-
else
163-
sed -i '$d' Cargo.nix
164-
fi
160+
${pkgs.gnused}/bin/sed -i '$d' Cargo.nix
165161
'';
166162
}

0 commit comments

Comments
 (0)