diff options
| author | Tom Harley | 2020-12-07 15:58:35 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-12-07 15:58:35 +0000 |
| commit | 2bc29ddaac803de7bc5f10a80681c1b224a57e11 (patch) | |
| tree | 4305a285c57b6f9bf91f1204436978b777609e8f | |
| parent | Fix conjure-minion.nix (diff) | |
| download | magpkgs-2bc29ddaac803de7bc5f10a80681c1b224a57e11.tar.gz magpkgs-2bc29ddaac803de7bc5f10a80681c1b224a57e11.zip | |
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.
| -rw-r--r-- | README | 64 | ||||
| -rw-r--r-- | conjure-minion.nix | 6 |
2 files changed, 64 insertions, 6 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 diff --git a/conjure-minion.nix b/conjure-minion.nix deleted file mode 100644 index 0183346..0000000 --- a/conjure-minion.nix +++ /dev/null @@ -1,6 +0,0 @@ -let conjure = (import ./default.nix {}).conjure; in - -conjure.override { - # minion = conjure.containedSolvers.minion; - savilerow = conjure.containedSolvers.savilerow; -} |
