2021-10-11 16:52:03 +00:00
|
|
|
{ fetchFromGitLab, lib, stdenv
|
|
|
|
, autoreconfHook, pkg-config
|
|
|
|
, libusb1
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libjaylink";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.3.1";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.zapb.de";
|
|
|
|
owner = "libjaylink";
|
|
|
|
repo = "libjaylink";
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-odJDE1A0WZ9vBXPxaUdthjTgmbmbdHjbyY1PkaM4+vI=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 contrib/99-libjaylink.rules $out/lib/udev/rules.d/libjaylink.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.zapb.de/libjaylink/libjaylink";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "libjaylink is a shared library written in C to access SEGGER J-Link and compatible devices";
|
2021-10-11 16:52:03 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ felixsinger ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
}
|