Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
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 = with lib; {
|
|
homepage = "https://gitlab.zapb.de/libjaylink/libjaylink";
|
|
description = "Shared library written in C to access SEGGER J-Link and compatible devices";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ felixsinger ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|