diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 74d23efcabe2..9be979057dc0 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -27,7 +27,9 @@ stdenv.mkDerivation rec { dontStrip = true; - DOCKER_BUILDTAGS = [ "journald" ]; + DOCKER_BUILDTAGS = [ "journald" ] + ++ optional (btrfs-progs == null) "exclude_graphdriver_btrfs" + ++ optional (devicemapper == null) "exclude_graphdriver_devicemapper"; buildPhase = '' patchShebangs .