From 02ebf2f2bdf174aef8661f2f9154e16870f152d5 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyich@gmail.com>
Date: Sun, 5 Dec 2021 17:49:58 +0000
Subject: [PATCH] afterstep: explicitly disable parallel builds

Without the change enabling parallel builds fails as:

    ld: cannot find ../libAfterConf/libAfterConf.a: No such file or directory
---
 pkgs/applications/window-managers/afterstep/default.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pkgs/applications/window-managers/afterstep/default.nix b/pkgs/applications/window-managers/afterstep/default.nix
index ac6ba4e0bf29..a26f824cd183 100644
--- a/pkgs/applications/window-managers/afterstep/default.nix
+++ b/pkgs/applications/window-managers/afterstep/default.nix
@@ -48,6 +48,12 @@ stdenv.mkDerivation rec {
      export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)"
   '';
 
+  # Parallel build fails due to missing dependencies between private libaries:
+  #   ld: cannot find ../libAfterConf/libAfterConf.a: No such file or directory
+  # Let's disable parallel builds until it's fixed upstream:
+  #   https://github.com/afterstep/afterstep/issues/8
+  enableParallelBuilding = false;
+
   meta = with lib; {
     description = "A NEXTStep-inspired window manager";
     longDescription = ''