nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 22 lines 345 B view raw
1args= 2 3target=$out 4if test -n "$dir"; then 5 target=$out/$dir/$name 6 mkdir -p $out/$dir 7fi 8 9substitutionsList=($replacements) 10 11if [[ -v substitutions ]]; then 12 eval "substitutionsList+=($substitutions)" 13fi 14 15substitute $src $target "${substitutionsList[@]}" 16 17if test -n "$isExecutable"; then 18 chmod +x $target 19fi 20 21eval "$postInstall" 22