summary refs log tree commit diff
path: root/pkgs/build-support/substitute/substitute-all.nix
blob: 7fd46f95f998f9d0ba9fd3879b39752d18d3c2e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ stdenvNoCC }:

args:

# see the substituteAll in the nixpkgs documentation for usage and constaints
stdenvNoCC.mkDerivation ({
  name = if args ? name then args.name else baseNameOf (toString args.src);
  builder = ./substitute-all.sh;
  inherit (args) src;
  preferLocalBuild = true;
} // args)