depot/third_party/nixpkgs/pkgs/by-name/li/libjaylink/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

43 lines
935 B
Nix

{
fetchFromGitLab,
lib,
stdenv,
autoreconfHook,
pkg-config,
libusb1,
}:
stdenv.mkDerivation rec {
pname = "libjaylink";
version = "0.3.1";
src = fetchFromGitLab {
domain = "gitlab.zapb.de";
owner = "libjaylink";
repo = "libjaylink";
rev = version;
hash = "sha256-odJDE1A0WZ9vBXPxaUdthjTgmbmbdHjbyY1PkaM4+vI=";
};
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.unix;
};
}