sidplayfp: 1.4.4 -> 2.0.2, fix API options
This commit is contained in:
parent
ce846253ca
commit
e60a22b961
@ -1,18 +1,36 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libsidplayfp }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, pkgconfig
|
||||||
|
, libsidplayfp
|
||||||
|
, alsaSupport ? stdenv.hostPlatform.isLinux
|
||||||
|
, alsaLib
|
||||||
|
, pulseSupport ? stdenv.hostPlatform.isLinux
|
||||||
|
, libpulseaudio
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert alsaSupport -> alsaLib != null;
|
||||||
|
assert pulseSupport -> libpulseaudio != null;
|
||||||
|
let
|
||||||
|
inherit (lib) optional;
|
||||||
|
inherit (lib.versions) majorMinor;
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.4.4";
|
|
||||||
pname = "sidplayfp";
|
pname = "sidplayfp";
|
||||||
|
version = "2.0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/1.4/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/${majorMinor version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0arsrg3f0fsinal22qjmj3r6500bcbgqnx26fsz049ldl716kz1m";
|
sha256 = "1s2dfs9z1hwarpfzawg11wax9nh0zcqx4cafwq7iysckyg4scz4k";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ]
|
||||||
|
++ optional alsaSupport alsaLib
|
||||||
|
++ optional pulseSupport libpulseaudio;
|
||||||
|
|
||||||
buildInputs = [ libsidplayfp ];
|
buildInputs = [ libsidplayfp ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A SID player using libsidplayfp";
|
description = "A SID player using libsidplayfp";
|
||||||
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
||||||
license = with licenses; [ gpl2Plus ];
|
license = with licenses; [ gpl2Plus ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user