mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 13:47:35 +00:00
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,
|
||||
freetype, fontconfig, xorg, libusb-compat-0_1 }:
|
||||
freetype, fontconfig, xorg, libusb-compat-0_1, coreutils }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "diamond";
|
||||
@ -85,6 +85,9 @@ stdenv.mkDerivation {
|
||||
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.
|
||||
rm $out/$prefix/bin/lin64/libz.{so,so.1}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user