summary refs log tree commit diff
path: root/pkgs/build-support/substitute/substitute-all.nix
blob: 57b160bbe90143be889de0116c313019d4b1433b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ 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;
  allowSubstitutes = false;
} // args)