mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
0cb16a6955
This is a standard environment that doesn't contain a C/C++ compiler. This is mostly to prevent trivial builders like runCommand and substituteAll from pulling in gcc for simple configuration changes on NixOS.
12 lines
298 B
Nix
12 lines
298 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;
|
|
} // args)
|