From 2c81c24fa63852c828c780cb4833463006e92201 Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Fri, 5 Aug 2016 19:50:36 +0300 Subject: [PATCH] libsidplayfp: init at 1.8.6 Fixes #17542. @fpletz: Removed unnecessary autotools dependencies. --- .../libraries/libsidplayfp/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/libraries/libsidplayfp/default.nix diff --git a/pkgs/development/libraries/libsidplayfp/default.nix b/pkgs/development/libraries/libsidplayfp/default.nix new file mode 100644 index 000000000000..78e7036bdccc --- /dev/null +++ b/pkgs/development/libraries/libsidplayfp/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, pkgconfig +, docSupport ? true, doxygen ? null, graphviz ? null }: + +assert docSupport -> doxygen != null && graphviz != null; + +stdenv.mkDerivation rec { + pname = "libsidplayfp"; + major = "1"; + minor = "8"; + level = "6"; + version = "${major}.${minor}.${level}"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/sidplay-residfp/${pname}/${major}.${minor}/${name}.tar.gz"; + sha256 = "0lzivfdq0crmfr01c6f5h883yr7wvagq198xkk3srdmvshhxmwnw"; + }; + + 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"; + homepage = https://sourceforge.net/projects/sidplay-residfp/; + license = with licenses; [ gpl2Plus ]; + maintainers = with maintainers; [ ramkromberg ]; + platforms = with platforms; unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a45b521fb8d4..0c36ac2e2dbd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2388,6 +2388,8 @@ in liboauth = callPackage ../development/libraries/liboauth { }; + libsidplayfp = callPackage ../development/libraries/libsidplayfp { }; + libsrs2 = callPackage ../development/libraries/libsrs2 { }; libtermkey = callPackage ../development/libraries/libtermkey { };