diff --git a/pkgs/development/libraries/libjaylink/default.nix b/pkgs/development/libraries/libjaylink/default.nix new file mode 100644 index 000000000000..6aac7675dcdc --- /dev/null +++ b/pkgs/development/libraries/libjaylink/default.nix @@ -0,0 +1,36 @@ +{ fetchFromGitLab, lib, stdenv +, autoreconfHook, pkg-config +, libusb1 +}: + +stdenv.mkDerivation rec { + pname = "libjaylink"; + version = "0.2.0"; + + src = fetchFromGitLab { + domain = "gitlab.zapb.de"; + owner = "libjaylink"; + repo = "libjaylink"; + rev = version; + sha256 = "0ndyfh51hiqyv2yscpj6qd091w7myxxjid3a6rx8f6k233vy826q"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 18c5484a9b18..f6e3f2c90b27 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17956,6 +17956,8 @@ with pkgs; liburcu = callPackage ../development/libraries/liburcu { }; + libjaylink = callPackage ../development/libraries/libjaylink { }; + libusb-compat-0_1 = callPackage ../development/libraries/libusb-compat/0.1.nix {}; libusb1 = callPackage ../development/libraries/libusb1 {