Nixpkgs/Contributing: Difference between revisions
imported>Milahu + called without required argument |
imported>Milahu update: Called without required argument |
||
Line 86: | Line 86: | ||
for example on <code>aarch64-darwin</code> | for example on <code>aarch64-darwin</code> | ||
Solution: Make it an optional dependency: | To see how other packages handle this dependency: | ||
<pre> | |||
cd nixpkgs | |||
grep -r some-dependency | |||
# -r = --recursive | |||
</pre> | |||
===== Avoid alias ===== | |||
Solution 1: Replace alias names with the real package names. For example: | |||
* utillinux → util-linux | |||
* double_conversion → double-conversion | |||
===== Use wrapper ===== | |||
Solution 2: Replace real packages with wrapper packages. For example: | |||
* xlibs → xlibsWrapper | |||
===== Make optional ===== | |||
Solution 3: Make it an optional dependency: | |||
<pre> | <pre> |