mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
openmpt123: 0.2.7025-beta20.1 -> 0.4.1
This commit is contained in:
parent
6b79f059b2
commit
f2b9162167
@ -1,24 +1,30 @@
|
|||||||
{ stdenv, fetchurl, SDL2, pkgconfig, flac, libsndfile }:
|
{ stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
||||||
|
, usePulseAudio ? false, libpulseaudio }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.2.7025-beta20.1";
|
version = "0.4.1";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "openmpt123-${version}";
|
name = "openmpt123-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}.tar.gz";
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
||||||
sha256 = "0qp2nnz6pnl1d7yv9hcjyim7q6yax5881k1jxm8jfgjqagmz5k6p";
|
sha256 = "1k1m1adjh4s2q9lxgkf836k5243akxrzq1hsdjhrkg4idd3pxzp4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ SDL2 flac libsndfile ];
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
||||||
makeFlags = [ "NO_PULSEAUDIO=1 NO_LTDL=1 TEST=0 EXAMPLES=0" ]
|
++ stdenv.lib.optional usePulseAudio libpulseaudio;
|
||||||
++ stdenv.lib.optional (stdenv.isDarwin) "SHARED_SONAME=0";
|
|
||||||
installFlags = "PREFIX=\${out}";
|
configureFlags = stdenv.lib.optional (!usePulseAudio) [ "--without-pulseaudio" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A cross-platform command-line based module file player";
|
description = "A cross-platform command-line based module file player";
|
||||||
homepage = https://lib.openmpt.org/libopenmpt/;
|
homepage = https://lib.openmpt.org/libopenmpt/;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ stdenv.lib.maintainers.gnidorah ];
|
maintainers = with maintainers; [ gnidorah ];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -18680,7 +18680,9 @@ in
|
|||||||
|
|
||||||
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {};
|
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {};
|
||||||
|
|
||||||
openmpt123 = callPackage ../applications/audio/openmpt123 {};
|
openmpt123 = callPackage ../applications/audio/openmpt123 {
|
||||||
|
usePulseAudio = config.pulseaudio or false;
|
||||||
|
};
|
||||||
|
|
||||||
opusfile = callPackage ../applications/audio/opusfile { };
|
opusfile = callPackage ../applications/audio/opusfile { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user