nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 24 lines 724 B view raw
1{ lib, stdenv, fetchurl, pkg-config, glib, python3, check }: 2 3stdenv.mkDerivation rec { 4 pname = "libsigrokdecode"; 5 version = "0.5.3"; 6 7 src = fetchurl { 8 url = "https://sigrok.org/download/source/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265"; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ glib python3 ]; 14 checkInputs = [ check ]; 15 doCheck = true; 16 17 meta = with lib; { 18 description = "Protocol decoding library for the sigrok signal analysis software suite"; 19 homepage = "https://sigrok.org/"; 20 license = licenses.gpl3Plus; 21 platforms = platforms.linux ++ platforms.darwin; 22 maintainers = [ maintainers.bjornfor ]; 23 }; 24}