lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

substituteAllFiles: add derivation

Closes #4145

authored by

Nikolay Amiantov and committed by
Mateusz Kowalczyk
09f33a43 9e74259b

+26
+22
pkgs/build-support/substitute-files/substitute-all-files.nix
··· 1 + { stdenv }: 2 + 3 + args: 4 + 5 + stdenv.mkDerivation ({ 6 + name = if args ? name then args.name else baseNameOf (toString args.src); 7 + builder = with stdenv.lib; builtins.toFile "builder.sh" '' 8 + source $stdenv/setup 9 + set -o pipefail 10 + 11 + eval "$preInstall" 12 + 13 + args= 14 + 15 + cd "$src" 16 + echo -ne "${concatStringsSep "\\0" args.files}" | xargs -0 -n1 -I {} -- find {} -type f -print0 | while read -d "" line; do 17 + mkdir -p "$out/$(dirname "$line")" 18 + substituteAll "$line" "$out/$line" 19 + done 20 + ''; 21 + preferLocalBuild = true; 22 + } // args)
+4
pkgs/top-level/all-packages.nix
··· 401 401 inherit stdenv; 402 402 }; 403 403 404 + substituteAllFiles = import ../build-support/substitute-files/substitute-all-files.nix { 405 + inherit stdenv; 406 + }; 407 + 404 408 replaceDependency = import ../build-support/replace-dependency.nix { 405 409 inherit runCommand nix lib; 406 410 };