brainix/sources/nixpkgs/pkgs/build-support/substitute/substitute-all.nix
2026-02-13 17:06:24 +09:00

12 lines
326 B
Nix

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