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
29 lines
739 B
Nix
29 lines
739 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
udev,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libserialport";
|
|
version = "0.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://sigrok.org/download/source/libserialport/libserialport-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-XeuStcpywDR7B7eGhINQ3sotz9l1zmE7jg4dlHpLTKk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev;
|
|
|
|
meta = {
|
|
description = "Cross-platform shared library for serial port access";
|
|
homepage = "https://sigrok.org/";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = with lib; platforms.linux ++ platforms.darwin ++ platforms.windows;
|
|
maintainers = [ lib.maintainers.bjornfor ];
|
|
};
|
|
})
|