2016-08-05 17:50:36 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, docSupport ? true, doxygen ? null, graphviz ? null }:
|
|
|
|
|
|
|
|
assert docSupport -> doxygen != null && graphviz != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsidplayfp";
|
|
|
|
major = "1";
|
|
|
|
minor = "8";
|
2018-07-01 11:11:56 +01:00
|
|
|
level = "7";
|
2016-08-05 17:50:36 +01:00
|
|
|
version = "${major}.${minor}.${level}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/sidplay-residfp/${pname}/${major}.${minor}/${pname}-${version}.tar.gz";
|
2018-07-01 11:11:56 +01:00
|
|
|
sha256 = "14k1sbdcbhykwfcadq5lbpnm9xp2r7vs7fyi84h72g89y8pjg0da";
|
2016-08-05 17:50:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ]
|
|
|
|
++ stdenv.lib.optionals docSupport [ doxygen graphviz ];
|
|
|
|
|
|
|
|
installTargets = [ "install" ]
|
|
|
|
++ stdenv.lib.optionals docSupport [ "doc" ];
|
|
|
|
|
|
|
|
outputs = [ "out" ] ++ stdenv.lib.optionals docSupport [ "doc" ];
|
|
|
|
|
|
|
|
postInstall = stdenv.lib.optionalString docSupport ''
|
|
|
|
mkdir -p $doc/share/doc/libsidplayfp
|
|
|
|
mv docs/html $doc/share/doc/libsidplayfp/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to play Commodore 64 music derived from libsidplay2";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
2016-08-05 17:50:36 +01:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|