parent
f17f830897
commit
32934a673f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue