Packaging/Quirks and Caveats: Difference between revisions

imported>Makefu
m formatting
imported>Lschuermann
m pkg-config: Use the actual package name, not the alias "pkgconfig"
Line 16: Line 16:
* [https://github.com/NixOS/nixpkgs/blob/f4c253ff2f68fbe3e302f944e8347233d9dc8c9d/pkgs/tools/networking/samplicator/default.nix samplicator]
* [https://github.com/NixOS/nixpkgs/blob/f4c253ff2f68fbe3e302f944e8347233d9dc8c9d/pkgs/tools/networking/samplicator/default.nix samplicator]


== Configure Scripts that are using pkgconfig ==
== Configure Scripts that are using pkg-config ==


Some configure scripts are using <code>pkgconfig</code> to determine the location of libraries and headers. Nixpkgs supports this by adding <code>pkgconfig</code> to <code>nativeBuildInputs</code>  
Some configure scripts are using <code>pkg-config</code> to determine the location of libraries and headers. Nixpkgs supports this by adding <code>pkg-config</code> to <code>nativeBuildInputs</code>  
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
nativeBuildInputs = [ ...  pkgconfig ];
nativeBuildInputs = [ ...  pkg-config ];
</syntaxhighlight>
</syntaxhighlight>
Examples in nixpkgs:  
Examples in nixpkgs: