mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
30 lines
973 B
Nix
30 lines
973 B
Nix
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, glib, python3, check, libxcrypt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libsigrokdecode";
|
|
version = "0.5.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://sigrok.org/download/source/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265";
|
|
};
|
|
|
|
# upstream was rleased before Python 3.9 and thus only checks versions up to 3.8
|
|
postPatch = ''
|
|
substituteInPlace configure.ac --replace '[python-3.8-embed]' '[python3-embed]'
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
buildInputs = [ glib python3 libxcrypt ];
|
|
nativeCheckInputs = [ check ];
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Protocol decoding library for the sigrok signal analysis software suite";
|
|
homepage = "https://sigrok.org/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|