mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
user environment collission between two packages due to overlapping
file names, then a package with a higher priority will overwrite the
symlinks of a package with a lower priority. E.g.,
$ nix-env --set-flag priority 5 gcc
$ nix-env --set-flag priority 10 binutils
gives gcc a higher priority than binutils (higher number = lower
priority).
14 lines
436 B
Nix
14 lines
436 B
Nix
{system, derivations, manifest}:
|
|
|
|
derivation {
|
|
name = "user-environment";
|
|
system = system;
|
|
builder = ./builder.pl;
|
|
|
|
manifest = manifest;
|
|
|
|
# !!! grmbl, need structured data for passing this in a clean way.
|
|
paths = derivations;
|
|
active = map (x: if x ? meta && x.meta ? active then x.meta.active else "true") derivations;
|
|
priority = map (x: if x ? meta && x.meta ? priority then x.meta.priority else "5") derivations;
|
|
}
|