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.
32 lines
1020 B
Nix
32 lines
1020 B
Nix
{ config, lib, stdenv, fetchurl, zlib, pkg-config, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
|
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
|
|
|
|
let
|
|
version = "0.5.4";
|
|
in stdenv.mkDerivation {
|
|
pname = "openmpt123";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
|
sha256 = "0h7gpjx1221jwsq3k91p8zhf1h77qaxyasakc88s3g57vawhckgk";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
|
++ lib.optional usePulseAudio libpulseaudio;
|
|
|
|
configureFlags = lib.optional (!usePulseAudio) "--without-pulseaudio";
|
|
|
|
meta = with lib; {
|
|
description = "A cross-platform command-line based module file player";
|
|
homepage = "https://lib.openmpt.org/libopenmpt/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|