Merge pull request #86660 from asbachb/lxd-usb.ids
lxd: added patch for fixing path `/usr/share/misc/usb.ids`
This commit is contained in:
commit
d33c22d954
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, pkgconfig, lxc, buildGoPackage, fetchurl
|
{ stdenv, hwdata, pkgconfig, lxc, buildGoPackage, fetchurl
|
||||||
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq
|
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq
|
||||||
, squashfsTools, iproute, iptables, ebtables, libcap, libco-canonical, dqlite
|
, squashfsTools, iproute, iptables, ebtables, libcap, libco-canonical, dqlite
|
||||||
, raft-canonical, sqlite-replication, udev
|
, raft-canonical, sqlite-replication, udev
|
||||||
|
@ -19,6 +19,11 @@ buildGoPackage rec {
|
||||||
sha256 = "0sxkyjayn7yyiy9kvbdlpkl58lwsl2rhlxnncg628f2kad2zgkdx";
|
sha256 = "0sxkyjayn7yyiy9kvbdlpkl58lwsl2rhlxnncg628f2kad2zgkdx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace shared/usbid/load.go \
|
||||||
|
--replace "/usr/share/misc/usb.ids" "${hwdata}/share/hwdata/usb.ids"
|
||||||
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# unpack vendor
|
# unpack vendor
|
||||||
pushd go/src/github.com/lxc/lxd
|
pushd go/src/github.com/lxc/lxd
|
||||||
|
|
Loading…
Reference in a new issue