13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
36 lines
918 B
Nix
36 lines
918 B
Nix
{ fetchFromGitLab, lib, stdenv
|
|
, autoreconfHook, pkg-config
|
|
, libusb1
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libjaylink";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.zapb.de";
|
|
owner = "libjaylink";
|
|
repo = "libjaylink";
|
|
rev = version;
|
|
sha256 = "sha256-90obLaSE3oxrocyJWZ4+j4U4GuPIZEiiIQqenu4vsJg=";
|
|
};
|
|
|
|
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";
|
|
description = "libjaylink is a shared library written in C to access SEGGER J-Link and compatible devices.";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ felixsinger ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|