1{ lib, stdenv, fetchurl, perl, pkg-config, audiofile, bzip2, glib, libgcrypt, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "libspectrum";
5 version = "1.5.0";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/fuse-emulator/${pname}-${version}.tar.gz";
9 sha256 = "sha256-o1PLRumxooEGHYFjU+oBDQpv545qF6oLe3QnHKXkrPw=";
10 };
11
12 nativeBuildInputs = [ perl pkg-config ];
13
14 buildInputs = [ audiofile bzip2 glib libgcrypt zlib ];
15
16 enableParallelBuilding = true;
17 doCheck = true;
18
19 meta = with lib; {
20 homepage = "https://fuse-emulator.sourceforge.net/libspectrum.php";
21 description = "ZX Spectrum input and output support library";
22 license = licenses.gpl2Plus;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ orivej ];
25 };
26}