mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00

The filtering of environment variables that start with an uppercase letter is documented in the manual.
12 lines
290 B
Nix
12 lines
290 B
Nix
{ 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)
|