stlink: 1.6.0 -> 1.7.0
This commit is contained in:
parent
1272986439
commit
4b7ccb3418
|
@ -9,25 +9,22 @@ let
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "stlink";
|
pname = "stlink";
|
||||||
version = "1.6.0";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "texane";
|
owner = "stlink-org";
|
||||||
repo = "stlink";
|
repo = "stlink";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
|
sha256 = "03xypffpbp4imrczbxmq69vgkr7mbp0ps9dk815br5wwlz6vgygl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libusb1' ];
|
buildInputs = [ libusb1' ];
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
patchPhase = ''
|
|
||||||
sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt
|
cmakeFlags = [
|
||||||
sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt
|
"-DSTLINK_MODPROBED_DIR=${placeholder "out"}/etc/modprobe.d"
|
||||||
'';
|
"-DSTLINK_UDEV_RULES_DIR=${placeholder "out"}/lib/udev/rules.d"
|
||||||
preInstall = ''
|
];
|
||||||
mkdir -p $out/etc/udev/rules.d
|
|
||||||
mkdir -p $out/etc/modprobe.d
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "In-circuit debug and programming for ST-Link devices";
|
description = "In-circuit debug and programming for ST-Link devices";
|
||||||
|
|
Loading…
Reference in New Issue