mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
a2d38bc7fc
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)
|