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

args:

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