[Nix-dev] Installing TeXLive
Andres Loeh
andres.loeh at googlemail.com
Thu Oct 9 16:17:06 CEST 2008
No, you shouldn't add a line to all-packages.nix. This file is overloaded
anyway.
Here's what I do in such cases. I create a new file in ~/.nix-defexpr,
in this case called texlive.nix (alternatively, you could have one file
there and include all similar situations):
let
nixpkgs = (import ./nixpkgs_sys) {};
in
with nixpkgs; {
myTexLive = texLiveAggregationFun {
paths = [
texLive texLiveExtra texLiveBeamer
];
} // { name = "mytexlive"; };
}
Then, I say
nix-env -i mytexlive
in order to install the thing.
Alternatively, if you want to have the aggregation globally, you could
of course add it to configuration.nix ...
Cheers,
Andres
More information about the nix-dev
mailing list