summary refs log tree commit diff
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2020-04-21 13:17:01 +0000
committeredef <edef@edef.eu>2020-04-21 13:20:17 +0000
commit11e13acc4666ed581cb82378398f5aa38d81875f (patch)
tree977933f0702b2992a0332f925a4e759a623a0972
parent6a03fa96ea750753fad005a89896545a2792e791 (diff)
downloadnixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar.gz
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar.bz2
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar.lz
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar.xz
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.tar.zst
nixpkgs-11e13acc4666ed581cb82378398f5aa38d81875f.zip
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
-rw-r--r--pkgs/build-support/src-only/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix
index c2f7cfb9399..a93b3648090 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";