Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
fetchFromGitLab,
lib,
libusb1,
meson,
ninja,
nix-update-script,
pkg-config,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libjaylink";
version = "0.4.0";
src = fetchFromGitLab {
domain = "gitlab.zapb.de";
owner = "libjaylink";
repo = "libjaylink";
tag = finalAttrs.version;
hash = "sha256-PghPVgovNo/HhNg7c6EGXrqi6jMrb8p/uLqGDIZ7t+s=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [ libusb1 ];
doInstallCheck = true;
postPatch = ''
substituteInPlace contrib/60-libjaylink.rules \
--replace-fail 'GROUP="plugdev"' 'GROUP="jlink"'
'';
postInstall = ''
install -Dm644 ../contrib/60-libjaylink.rules $out/lib/udev/rules.d/60-libjaylink.rules
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://gitlab.zapb.de/libjaylink/libjaylink";
description = "Shared library written in C to access SEGGER J-Link and compatible devices";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ felixsinger ];
platforms = lib.platforms.unix;
};
})