uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
66
pkgs/development/libraries/audio/libopenmpt/default.nix
Normal file
66
pkgs/development/libraries/audio/libopenmpt/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ config
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, zlib
|
||||
, pkg-config
|
||||
, mpg123
|
||||
, libogg
|
||||
, libvorbis
|
||||
, portaudio
|
||||
, libsndfile
|
||||
, flac
|
||||
, usePulseAudio ? config.pulseaudio or stdenv.isLinux
|
||||
, libpulseaudio
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libopenmpt";
|
||||
version = "0.6.3";
|
||||
|
||||
outputs = [ "out" "dev" "bin" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
||||
sha256 = "pBCv63zVlwsWuabOfazPSVsaXpEhqdZELeDAKP1Uols=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
mpg123
|
||||
libogg
|
||||
libvorbis
|
||||
portaudio
|
||||
libsndfile
|
||||
flac
|
||||
] ++ lib.optional usePulseAudio libpulseaudio;
|
||||
|
||||
configureFlags = lib.optional (!usePulseAudio) "--without-pulseaudio";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postFixup = ''
|
||||
moveToOutput share/doc $dev
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform C++ and C library to decode tracked music files into a raw PCM audio stream";
|
||||
longDescription = ''
|
||||
libopenmpt is a cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream.
|
||||
openmpt123 is a cross-platform command-line or terminal based module file player.
|
||||
libopenmpt is based on the player code of the OpenMPT project.
|
||||
'';
|
||||
homepage = "https://lib.openmpt.org/libopenmpt/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue