about summary refs log tree commit diff
path: root/pkgs/desktops/cdesktopenv/default.nix
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-08-21 14:05:48 -0700
committerBernardo Meurer <bernardo@meurer.org>2022-03-28 18:50:08 -0700
commit492a60230cbebee424ce8d70c20d4f5012791dfa (patch)
tree4b681c9a2c9c8082f13482314c2418f0013efc9c /pkgs/desktops/cdesktopenv/default.nix
parentcc83bad887fec116d435e1d9e977883afc54dd55 (diff)
cdesktopenv: binutils 2.37 fix
Co-authored-by: TredwellGit <tredwell@tutanota.com>
Diffstat (limited to 'pkgs/desktops/cdesktopenv/default.nix')
-rw-r--r--pkgs/desktops/cdesktopenv/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/desktops/cdesktopenv/default.nix b/pkgs/desktops/cdesktopenv/default.nix
index 77650e71ebe9b..b506ed3663b91 100644
--- a/pkgs/desktops/cdesktopenv/default.nix
+++ b/pkgs/desktops/cdesktopenv/default.nix
@@ -56,6 +56,19 @@ in stdenv.mkDerivation rec {
     "LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive"
   ];
 
+  preConfigure = ''
+    # binutils 2.37 fix
+    fixupList=(
+      "config/cf/Imake.tmpl"
+      "config/util/crayar.sh"
+      "config/util/crayar.sh"
+      "programs/dtwm/Makefile.tmpl"
+    )
+    for toFix in "''${fixupList[@]}"; do
+      substituteInPlace "$toFix" --replace "clq" "cq"
+    done
+  '';
+
   preBuild = ''
     while IFS= read -r -d ''$'\0' i; do
       substituteInPlace "$i" --replace /usr/dt $out/opt/dt