mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
a46db5d013
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;
|
|
}
|