1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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>
|