From 2bc29ddaac803de7bc5f10a80681c1b224a57e11 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Mon, 7 Dec 2020 15:58:35 +0000 Subject: Add README and remove conjure-minion.nix Added a README that explains how to use the project and the rationale behind keeping it separate from nixpkgs. Replaced `conjure-minion.nix` with an explanation of how to build Conjure in the README. --- README | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..5336d61 --- /dev/null +++ b/README @@ -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 ``, similarly to ``. + +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 {}; + +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 -- cgit v1.2.1