debug-info: use pkgs.lib.overrideDerivation

Without this change, I get the error “undefined variable 'overrideDerivation'”

Fixes #18529.
This commit is contained in:
Michael Stapelberg 2016-09-12 10:22:28 +02:00 committed by Franz Pletz
parent 034ba88850
commit 87793207e8
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -20,7 +20,7 @@ with lib;
<!-- FIXME: ugly, see #10721 -->
<programlisting>
nixpkgs.config.packageOverrides = pkgs: {
hello = overrideDerivation pkgs.hello (attrs: {
hello = pkgs.stdenv.lib.overrideDerivation pkgs.hello (attrs: {
outputs = attrs.outputs or ["out"] ++ ["debug"];
buildInputs = attrs.buildInputs ++ [&lt;nixpkgs/pkgs/build-support/setup-hooks/separate-debug-info.sh>];
});