diff options
Diffstat (limited to 'README')
| -rw-r--r-- | README | 64 |
1 files changed, 64 insertions, 0 deletions
@@ -0,0 +1,64 @@ +# magpkgs + +Welcome to my little Nix package repo, containing packages of applications I'd +like to use in NixOS. + +## Using magpkgs + +Add the magpkgs master branch as a Nix channel: +```sh +$ nix-channel --add https://www.magnostherobot.co.uk/git.cgi/personal-projects/magpkgs/snapshot/magpkgs-master.tar.gz magpkgs +``` +and import it as `<magpkgs>`, similarly to `<nixpkgs>`. + +To receive new updates from the repo, simply update the channel: +```sh +$ nix-channel --update magpkgs +``` +and rebuild any derivations that use magpkgs. + +## Rationale + +Originally, I was planning on making some packages and creating PRs for them in +the main nixpkgs repo. However, I realised keeping my packages seperate might +be a better idea, for a few reasons: + +- the nixpkgs repo usually only keeps application versions around if they think + people are using those specific versions for a good reason; I'd prefer to not + assume this kind of thing, and would instead like to manage derivations of as + many versions as possible; +- some programs I plan on packaging (e.g. Factorio) already have packages in + nixpkgs, but I'd prefer to package them a different way; +- some programs depend on specific versions of their dependencies---I'd like to + make thorough version dependency checking, which is something nixpkgs avoids + doing by only keeping a few derivations of each program. + +## Example: Building a Working Conjure + +Conjure relies on specific versions of Savile Row and Minion to work: for +example, its most recent release does not work if given the most recent +releases of Savile Row and Minion provide on their respective websites. +However, it does work with the versions provided in Conjure's supplementary +download. To build a working version of Conjure, use this expression: + +```nix +{ ... }: + +with import <magpkgs> {}; + +conjure.override { + savilerow = conjure.containedSolvers.savilerow; +} +``` + +Hopefully in the future, version dependency management will ensure that +packages are put together using versions that co-operate by default. + +## Contributing/Bugs/Contact Me + +If you'd like to submit a patch for consideration, would like to highlight a +bug, or would just like to contact me about this project, please email +magpkgs@magnostherobot.co.uk + +If you would like to contact me for other reasons, please email +tom@magnostherobot.co.uk |
