debBuild: Fix for "cannot coerce a set to a string"

Nix won't let us turn `lib` into an environment variable.

As discussed here:

  https://github.com/NixOS/nixpkgs/pull/111672#issuecomment-773484089
This commit is contained in:
Damien Diederen 2021-02-04 18:24:18 +01:00
parent 9744abab00
commit 56124f3e66

View file

@ -22,7 +22,7 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
prePhases = "installExtraDebsPhase sysInfoPhase";
}
// removeAttrs args ["vmTools"] //
// removeAttrs args ["vmTools" "lib"] //
{
name = name + "-" + diskImage.name + (if src ? version then "-" + src.version else "");