lattice-diamond: Replace direct use of /usr/bin/id with Nix-compatible path
This commit is contained in:
parent
4df32ef3b7
commit
2fe7e66ca0
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, rpmextract, patchelf, makeWrapper, file, requireFile, glib, zlib,
|
{ lib, stdenv, rpmextract, patchelf, makeWrapper, file, requireFile, glib, zlib,
|
||||||
freetype, fontconfig, xorg, libusb-compat-0_1 }:
|
freetype, fontconfig, xorg, libusb-compat-0_1, coreutils }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "diamond";
|
pname = "diamond";
|
||||||
|
@ -85,6 +85,9 @@ stdenv.mkDerivation {
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Patch absolute /usr/bin/id path in script
|
||||||
|
sed -i -e "s#/usr/bin/id#${coreutils}/bin/id#" $out/$prefix/synpbase/bin/config/platform_set
|
||||||
|
|
||||||
# Remove 32-bit libz.
|
# Remove 32-bit libz.
|
||||||
rm $out/$prefix/bin/lin64/libz.{so,so.1}
|
rm $out/$prefix/bin/lin64/libz.{so,so.1}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue