1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/applications/audio/sidplayfp/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, pkg-config
, libsidplayfp
, alsaSupport ? stdenv.hostPlatform.isLinux
, alsaLib
, pulseSupport ? stdenv.hostPlatform.isLinux
, libpulseaudio
}:
2018-07-01 11:36:57 +01:00
assert alsaSupport -> alsaLib != null;
assert pulseSupport -> libpulseaudio != null;
let
inherit (lib) optional;
inherit (lib.versions) majorMinor;
in
2018-07-01 11:36:57 +01:00
stdenv.mkDerivation rec {
pname = "sidplayfp";
version = "2.0.2";
2018-07-01 11:36:57 +01:00
src = fetchurl {
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/${majorMinor version}/${pname}-${version}.tar.gz";
sha256 = "1s2dfs9z1hwarpfzawg11wax9nh0zcqx4cafwq7iysckyg4scz4k";
2018-07-01 11:36:57 +01:00
};
nativeBuildInputs = [ pkg-config ]
++ optional alsaSupport alsaLib
++ optional pulseSupport libpulseaudio;
2018-07-01 11:36:57 +01:00
buildInputs = [ libsidplayfp ];
meta = with lib; {
2018-07-01 11:36:57 +01:00
description = "A SID player using libsidplayfp";
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
2018-07-01 11:36:57 +01:00
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ dezgeg ];
platforms = with platforms; linux;
};
}