From 11e13acc4666ed581cb82378398f5aa38d81875f Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 21 Apr 2020 13:17:01 +0000 Subject: [PATCH] srcOnly: ignore additional arguments 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 --- pkgs/build-support/src-only/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index c2f7cfb93998..a93b36480908 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -1,4 +1,4 @@ -{ stdenv, name, src, patches ? [], buildInputs ? [] }: +{stdenv, name, src, patches ? [], buildInputs ? [], ...}: stdenv.mkDerivation { inherit src buildInputs patches name; installPhase = "cp -r . $out";