summary refs log tree commit diff
path: root/pkgs/build-support/src-only
Commit message (Collapse)AuthorAge
* srcOnly: rename buildInputs to nativeBuildInputszimbatm2020-04-27
| | | | | | | | The only reason to pass build inputs is to extend the unpackPhase with custom unpack commands. Eg: add "unrar" to unpack rar sources. And those should really be passed as native build inputs. Why? Because nativeBuildInputs is for dependencies that are used at build time but will not propagate as runtime dependencies. And also, cross-compilation.
* srcOnly: fix invocation and documentzimbatm2020-04-22
| | | | | | | | | | Previously, callPackage would try and fill the arguments such as `name` and `src` which would cause problems if those existed as top-level attributes. This also makes it clearer what part is the function signature. Then document the derivation inline in the code to explain the ellipsis and various use-cases.
* srcOnly: ignore additional argumentsedef2020-04-21
| | | | | | | | | | | | | This reverts commit b32a057425b337b37db41d3b4a67d39657477c05, which breaks even the most straightforward uses of srcOnly: nix-repl> srcOnly guile error: anonymous function at /home/src/nixpkgs/pkgs/build-support/src-only/default.nix:1:1 called with unexpected argument 'drvPath', at /home/src/nixpkgs/lib/customisation.nix:69:16 nix-repl> srcOnly hello error: anonymous function at /home/src/nixpkgs/pkgs/build-support/src-only/default.nix:1:1 called with unexpected argument 'drvPath', at /home/src/nixpkgs/lib/customisation.nix:69:16 Link: https://github.com/NixOS/nixpkgs/pull/80903#issuecomment-617172927
* srcOnly: remove the ellipsis (#80903)zimbatm2020-02-24
| | | The function doesn't make use of the extra arguments.
* A helper to get the source some package is built from.Michael Raskin2008-10-01
svn path=/nixpkgs/trunk/; revision=12933