lxd: fixing path `/usr/share/misc/usb.ids`

see #86650
This commit is contained in:
Benjamin Asbach 2020-05-03 14:34:25 +02:00
parent f17f830897
commit 32934a673f
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, pkgconfig, lxc, buildGoPackage, fetchurl
{ stdenv, hwdata, pkgconfig, lxc, buildGoPackage, fetchurl
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq
, squashfsTools, iproute, iptables, ebtables, libcap, libco-canonical, dqlite
, raft-canonical, sqlite-replication, udev
@ -19,6 +19,11 @@ buildGoPackage rec {
sha256 = "0sxkyjayn7yyiy9kvbdlpkl58lwsl2rhlxnncg628f2kad2zgkdx";
};
postPatch = ''
substituteInPlace shared/usbid/load.go \
--replace "/usr/share/misc/usb.ids" "${hwdata}/share/hwdata/usb.ids"
'';
preBuild = ''
# unpack vendor
pushd go/src/github.com/lxc/lxd