patsh: add comments explaining the patches

This commit is contained in:
figsoda 2022-12-05 15:01:35 -05:00
parent a5f661b80e
commit 0284480527

View file

@ -7,6 +7,8 @@
}:
let
# copied from flake.nix
# tests require extra setup with nix
custom = runCommand "custom" { } ''
mkdir -p $out/bin
touch $out/bin/{'foo$','foo"`'}
@ -29,6 +31,7 @@ rustPlatform.buildRustPackage rec {
checkInputs = [ custom ];
# see comment on `custom`
postPatch = ''
for file in tests/fixtures/*-expected.sh; do
substituteInPlace $file \