3
0
Fork 0
forked from mirrors/nixpkgs

cdesktopenv: binutils 2.37 fix

Co-authored-by: TredwellGit <tredwell@tutanota.com>
This commit is contained in:
Bernardo Meurer 2021-08-21 14:05:48 -07:00
parent cc83bad887
commit 492a60230c
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -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