nixpkgs/pkgs/build-support/substitute/substitute-all.nix

12 lines
290 B
Nix
Raw Normal View History

{ 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)