libsidplayfp: 1.8.7 -> 2.0.4
This commit is contained in:
parent
8a78890a08
commit
ce846253ca
@ -1,34 +1,41 @@
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
, docSupport ? true, doxygen ? null, graphviz ? null }:
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, pkgconfig
|
||||
, docSupport ? true
|
||||
, doxygen ? null
|
||||
, graphviz ? null
|
||||
}:
|
||||
|
||||
assert docSupport -> doxygen != null && graphviz != null;
|
||||
|
||||
let
|
||||
inherit (lib) optionals optionalString;
|
||||
inherit (lib.versions) majorMinor;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libsidplayfp";
|
||||
major = "1";
|
||||
minor = "8";
|
||||
level = "7";
|
||||
version = "${major}.${minor}.${level}";
|
||||
version = "2.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/sidplay-residfp/${pname}/${major}.${minor}/${pname}-${version}.tar.gz";
|
||||
sha256 = "14k1sbdcbhykwfcadq5lbpnm9xp2r7vs7fyi84h72g89y8pjg0da";
|
||||
url = "mirror://sourceforge/sidplay-residfp/${pname}/${majorMinor version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0d866czmnmhnhb2j37rlrdphjdi2b75kak9barm9xqwg2z0nmmhz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ]
|
||||
++ stdenv.lib.optionals docSupport [ doxygen graphviz ];
|
||||
++ optionals docSupport [ doxygen graphviz ];
|
||||
|
||||
installTargets = [ "install" ]
|
||||
++ stdenv.lib.optionals docSupport [ "doc" ];
|
||||
++ optionals docSupport [ "doc" ];
|
||||
|
||||
outputs = [ "out" ] ++ stdenv.lib.optionals docSupport [ "doc" ];
|
||||
outputs = [ "out" ]
|
||||
++ optionals docSupport [ "doc" ];
|
||||
|
||||
postInstall = stdenv.lib.optionalString docSupport ''
|
||||
postInstall = optionalString docSupport ''
|
||||
mkdir -p $doc/share/doc/libsidplayfp
|
||||
mv docs/html $doc/share/doc/libsidplayfp/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A library to play Commodore 64 music derived from libsidplay2";
|
||||
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
||||
license = with licenses; [ gpl2Plus ];
|
||||
|
Loading…
Reference in New Issue
Block a user