From 0284480527be8935b21600cf1cdfaf3d7274bfb6 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 5 Dec 2022 15:01:35 -0500 Subject: [PATCH] patsh: add comments explaining the patches --- pkgs/development/tools/misc/patsh/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/misc/patsh/default.nix b/pkgs/development/tools/misc/patsh/default.nix index e36ce7c884bd..63ec7ec1e5e5 100644 --- a/pkgs/development/tools/misc/patsh/default.nix +++ b/pkgs/development/tools/misc/patsh/default.nix @@ -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 \