17 stdenv.mkDerivation rec {
18 pname = "libsidplayfp";
21 src = fetchFromGitHub {
22 owner = "libsidplayfp";
23 repo = "libsidplayfp";
25 fetchSubmodules = true;
26 sha256 = "sha256-o9VPOX50QTp3gVNv2MEizrm4WxW6mOBi8eiuyoe2XZQ=";
33 nativeBuildInputs = [ autoreconfHook pkg-config perl xa ]
34 ++ lib.optionals docSupport [ doxygen graphviz ];
36 buildInputs = [ libgcrypt libexsid ];
40 checkInputs = [ unittest-cpp ];
42 enableParallelBuilding = true;
44 installTargets = [ "install" ]
45 ++ lib.optionals docSupport [ "doc" ];
48 ++ lib.optionals docSupport [ "doc" ];
55 ++ lib.optional doCheck "--enable-tests";
57 postInstall = lib.optionalString docSupport ''
58 mkdir -p $doc/share/doc/libsidplayfp
59 mv docs/html $doc/share/doc/libsidplayfp/
63 updateScript = nix-update-script {
69 description = "A library to play Commodore 64 music derived from libsidplay2";
71 libsidplayfp is a C64 music player library which integrates
72 the reSID SID chip emulation into a cycle-based emulator
73 environment, constantly aiming to improve emulation of the
74 C64 system and the SID chips.
76 homepage = "https://github.com/libsidplayfp/libsidplayfp";
77 license = with licenses; [ gpl2Plus ];
78 maintainers = with maintainers; [ ramkromberg OPNA2608 ];
79 platforms = platforms.all;