Packaging/Quirks and Caveats: Difference between revisions
imported>Makefu No edit summary |
imported>Makefu No edit summary |
||
| Line 8: | Line 8: | ||
== Build software with Autotools == | == Build software with Autotools == | ||
Add <code>autoreconfHook</code> to <code> | Add <code>autoreconfHook</code> to <code>nativeBuildInputs</code> to automatically build software which uses <code>automake</code> and <code>autoconf</code>: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
nativeBuildInputs = [ ... autoreconfHook ]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Examples in nixpkgs: * [https://github.com/NixOS/nixpkgs/blob/f4c253ff2f68fbe3e302f944e8347233d9dc8c9d/pkgs/tools/networking/samplicator/default.nix samplicator] | Examples in nixpkgs: * [https://github.com/NixOS/nixpkgs/blob/f4c253ff2f68fbe3e302f944e8347233d9dc8c9d/pkgs/tools/networking/samplicator/default.nix samplicator] | ||