sidplayfp: 2.0.2 -> 2.1.1
This commit is contained in:
parent
29072962ed
commit
b85a2687bf
@ -1,40 +1,47 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, perl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libsidplayfp
|
, libsidplayfp
|
||||||
, alsaSupport ? stdenv.hostPlatform.isLinux
|
, alsaSupport ? stdenv.hostPlatform.isLinux
|
||||||
, alsaLib
|
, alsaLib
|
||||||
, pulseSupport ? stdenv.hostPlatform.isLinux
|
, pulseSupport ? stdenv.hostPlatform.isLinux
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
|
, out123Support ? stdenv.hostPlatform.isDarwin
|
||||||
|
, mpg123
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert alsaSupport -> alsaLib != null;
|
|
||||||
assert pulseSupport -> libpulseaudio != null;
|
|
||||||
let
|
|
||||||
inherit (lib) optional;
|
|
||||||
inherit (lib.versions) majorMinor;
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sidplayfp";
|
pname = "sidplayfp";
|
||||||
version = "2.0.2";
|
version = "2.1.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/${majorMinor version}/${pname}-${version}.tar.gz";
|
owner = "libsidplayfp";
|
||||||
sha256 = "1s2dfs9z1hwarpfzawg11wax9nh0zcqx4cafwq7iysckyg4scz4k";
|
repo = "sidplayfp";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0s3xmg3yzfqbsnlh2y46w7b5jim5zq7mshs6hx03q8wdr75cvwh4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ]
|
nativeBuildInputs = [ autoreconfHook perl pkg-config ];
|
||||||
++ optional alsaSupport alsaLib
|
|
||||||
++ optional pulseSupport libpulseaudio;
|
|
||||||
|
|
||||||
buildInputs = [ libsidplayfp ];
|
buildInputs = [ libsidplayfp ]
|
||||||
|
++ lib.optional alsaSupport alsaLib
|
||||||
|
++ lib.optional pulseSupport libpulseaudio
|
||||||
|
++ lib.optional out123Support mpg123;
|
||||||
|
|
||||||
|
configureFlags = lib.optionals out123Support [
|
||||||
|
"--with-out123"
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with 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://github.com/libsidplayfp/sidplayfp";
|
||||||
license = with licenses; [ gpl2Plus ];
|
license = with licenses; [ gpl2Plus ];
|
||||||
maintainers = with maintainers; [ dezgeg ];
|
maintainers = with maintainers; [ dezgeg OPNA2608 ];
|
||||||
platforms = with platforms; linux;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user