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

11 lines
212 B
Nix
Raw Normal View History

{ stdenv }:
args:
stdenv.mkDerivation ({
name = if args ? name then args.name else baseNameOf (toString args.src);
builder = ./substitute-all.sh;
inherit (args) src;
preferLocalBuild = true;
} // args)