20 stdenv.mkDerivation (finalAttrs: {
21 pname = "libsidplayfp";
24 src = fetchFromGitHub {
25 owner = "libsidplayfp";
26 repo = "libsidplayfp";
27 rev = "v${finalAttrs.version}";
28 fetchSubmodules = true;
29 hash = "sha256-O6VzHjJT3k1uLI0bjBDRntLqAZdMurs8onLZ6L6NlIU=";
32 outputs = [ "out" ] ++ lib.optionals docSupport [ "doc" ];
47 ++ lib.optionals docSupport [
57 checkInputs = [ unittest-cpp ];
59 enableParallelBuilding = true;
62 (lib.strings.enableFeature true "hardsid")
63 (lib.strings.withFeature true "gcrypt")
64 (lib.strings.withFeature true "exsid")
65 (lib.strings.enableFeature finalAttrs.finalPackage.doCheck "tests")
68 # Make Doxygen happy with the setup, reduce log noise
69 env.FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf {
70 fontDirectories = [ ];
74 # Reduce noise from fontconfig during doc building
75 export XDG_CACHE_HOME=$TMPDIR
78 buildFlags = [ "all" ] ++ lib.optionals docSupport [ "doc" ];
80 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
82 postInstall = lib.optionalString docSupport ''
83 mkdir -p $doc/share/doc/libsidplayfp
84 mv docs/html $doc/share/doc/libsidplayfp/
88 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
89 updateScript = nix-update-script { };
93 description = "Library to play Commodore 64 music derived from libsidplay2";
95 libsidplayfp is a C64 music player library which integrates
96 the reSID SID chip emulation into a cycle-based emulator
97 environment, constantly aiming to improve emulation of the
98 C64 system and the SID chips.
100 homepage = "https://github.com/libsidplayfp/libsidplayfp";
101 changelog = "https://github.com/libsidplayfp/libsidplayfp/releases/tag/v${finalAttrs.version}";
102 license = with lib.licenses; [ gpl2Plus ];
103 maintainers = with lib.maintainers; [
107 platforms = lib.platforms.all;