forked from mirrors/nixpkgs
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, pkg-config
|
|
, 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 {
|
|
pname = "sidplayfp";
|
|
version = "2.0.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/${majorMinor version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1s2dfs9z1hwarpfzawg11wax9nh0zcqx4cafwq7iysckyg4scz4k";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ]
|
|
++ optional alsaSupport alsaLib
|
|
++ optional pulseSupport libpulseaudio;
|
|
|
|
buildInputs = [ libsidplayfp ];
|
|
|
|
meta = with lib; {
|
|
description = "A SID player using libsidplayfp";
|
|
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
|
license = with licenses; [ gpl2Plus ];
|
|
maintainers = with maintainers; [ dezgeg ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|