5 # This is a wrapper around `substitute` in the stdenv.
6 # The `replacements` attribute should be a list of list of arguments
7 # to `substitute`, such as `[ "--replace" "sourcetext" "replacementtext" ]`
8 stdenvNoCC.mkDerivation ({
9 name = if args ? name then args.name else baseNameOf (toString args.src);
10 builder = ./substitute.sh;
12 preferLocalBuild = true;
13 allowSubstitutes = false;
14 } // args // { replacements = args.replacements; })