Jump to content

Nixpkgs/Contributing: Difference between revisions

update: Called without required argument
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 &rarr; util-linux
* double_conversion &rarr; double-conversion
 
===== Use wrapper =====
 
Solution 2: Replace real packages with wrapper packages. For example:
 
* xlibs &rarr; xlibsWrapper
 
===== Make optional =====
 
Solution 3: Make it an optional dependency:


<pre>
<pre>
Anonymous user