openvswitch: generalize builder
[NixPkgs.git] / pkgs / build-support / substitute / substitute-all.nix
blob57b160bbe90143be889de0116c313019d4b1433b
1 { stdenvNoCC }:
3 args:
5 # see the substituteAll in the nixpkgs documentation for usage and constaints
6 stdenvNoCC.mkDerivation ({
7   name = if args ? name then args.name else baseNameOf (toString args.src);
8   builder = ./substitute-all.sh;
9   inherit (args) src;
10   preferLocalBuild = true;
11   allowSubstitutes = false;
12 } // args)