stlink: cmake is a nativeBuildInput

This commit is contained in:
Florian Klink 2020-04-24 23:56:39 +02:00
parent dd03e76f61
commit 4f27b45bb5

View File

@ -18,7 +18,8 @@ in stdenv.mkDerivation rec {
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x"; sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
}; };
buildInputs = [ cmake libusb1' ]; buildInputs = [ libusb1' ];
nativeBuildInputs = [ cmake ];
patchPhase = '' patchPhase = ''
sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt
sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt