mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
stlink: 1.6.0 -> 1.7.0
This commit is contained in:
parent
1272986439
commit
4b7ccb3418
1 changed files with 8 additions and 11 deletions
|
@ -9,25 +9,22 @@ let
|
|||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "stlink";
|
||||
version = "1.6.0";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "texane";
|
||||
owner = "stlink-org";
|
||||
repo = "stlink";
|
||||
rev = "v${version}";
|
||||
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
|
||||
sha256 = "03xypffpbp4imrczbxmq69vgkr7mbp0ps9dk815br5wwlz6vgygl";
|
||||
};
|
||||
|
||||
buildInputs = [ libusb1' ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
patchPhase = ''
|
||||
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
|
||||
'';
|
||||
preInstall = ''
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
mkdir -p $out/etc/modprobe.d
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSTLINK_MODPROBED_DIR=${placeholder "out"}/etc/modprobe.d"
|
||||
"-DSTLINK_UDEV_RULES_DIR=${placeholder "out"}/lib/udev/rules.d"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "In-circuit debug and programming for ST-Link devices";
|
||||
|
|
Loading…
Reference in a new issue