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

16 lines
345 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ stdenvNoCC }:
args:
# see the substituteAll in the nixpkgs documentation for usage and constraints
2024-06-30 08:12:46 +00:00
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
)