push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
{
lib,
stdenv,
unzip,
fetchurl,
}:
# Upstream changes files in-place, to update:
# 1. Check latest version at http://www.un4seen.com/
# 2. Update `version`s and `hash` sums.
# See also http://www.un4seen.com/forum/?topic=18614.0
# Internet Archive used due to upstream URLs being unstable
let
allBass = {
bass = {
h = "bass.h";
version = "2.4.17";
so = {
i686_linux = "libs/x86/libbass.so";
x86_64-linux = "libs/x86_64/libbass.so";
armv7l-linux = "libs/armhf/libbass.so";
aarch64-linux = "libs/aarch64/libbass.so";
};
url = "https://web.archive.org/web/20240501180538/http://www.un4seen.com/files/bass24-linux.zip";
hash = "sha256-/JAlvtZtnzuzZjWy3n1WT8Q5ZVLO0BJJAJT7/dELS3o=";
};
bass_fx = {
h = "C/bass_fx.h";
version = "2.4.12.1";
so = {
i686_linux = "libs/x86/libbass_fx.so";
x86_64-linux = "libs/x86_64/libbass_fx.so";
armv7l-linux = "libs/armhf/libbass_fx.so";
aarch64-linux = "libs/aarch64/libbass_fx.so";
};
url = "https://web.archive.org/web/20240926184106/https://www.un4seen.com/files/z/0/bass_fx24-linux.zip";
hash = "sha256-Hul2ELwnaDV8TDRMDXoFisle31GATDkf3PdkR2K9QTs=";
};
bassmidi = {
h = "bassmidi.h";
version = "2.4.15.3";
so = {
i686_linux = "libs/x86/libbassmidi.so";
x86_64-linux = "libs/x86_64/libbassmidi.so";
armv7l-linux = "libs/armhf/libbassmidi.so";
aarch64-linux = "libs/aarch64/libbassmidi.so";
};
url = "https://web.archive.org/web/20240501180447/http://www.un4seen.com/files/bassmidi24-linux.zip";
hash = "sha256-HrF1chhGk32bKN3jwal44Tz/ENGe/zORsrLPeGAv1OE=";
};
bassmix = {
h = "bassmix.h";
version = "2.4.12";
so = {
i686_linux = "libs/x86/libbassmix.so";
x86_64-linux = "libs/x86_64/libbassmix.so";
armv7l-linux = "libs/armhf/libbassmix.so";
aarch64-linux = "libs/aarch64/libbassmix.so";
};
url = "https://web.archive.org/web/20240930183631/https://www.un4seen.com/files/bassmix24-linux.zip";
hash = "sha256-oxxBhsjeLvUodg2SOMDH4wUy5na3nxLTqYkB+iXbOgA=";
};
};
dropBass =
name: bass:
stdenv.mkDerivation {
pname = "lib${name}";
inherit (bass) version;
src = fetchurl {
inherit (bass) hash url;
};
unpackCmd = ''
mkdir out
${unzip}/bin/unzip $curSrc -d out
'';
lpropagatedBuildInputs = [ unzip ];
dontBuild = true;
installPhase =
let
so =
if bass.so ? ${stdenv.hostPlatform.system} then
bass.so.${stdenv.hostPlatform.system}
else
throw "${name} not packaged for ${stdenv.hostPlatform.system} (yet).";
in
''
mkdir -p $out/{lib,include}
install -m644 -t $out/lib/ ${so}
install -m644 -t $out/include/ ${bass.h}
'';
meta = with lib; {
description = "Shareware audio library";
homepage = "https://www.un4seen.com/";
license = licenses.unfreeRedistributable;
platforms = builtins.attrNames bass.so;
maintainers = with maintainers; [ poz ];
};
};
in
lib.mapAttrs dropBass allBass

View File

@@ -0,0 +1,53 @@
{
stdenv,
lib,
config,
fetchFromGitHub,
cmake,
pkg-config,
alsaSupport ? stdenv.hostPlatform.isLinux,
alsa-lib,
pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux,
libpulseaudio,
jackSupport ? true,
jack,
coreaudioSupport ? stdenv.hostPlatform.isDarwin,
}:
stdenv.mkDerivation rec {
pname = "rtaudio";
version = "5.2.0";
# nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "thestk";
repo = "rtaudio";
rev = version;
sha256 = "0xvahlfj3ysgsjsp53q81hayzw7f99n1g214gh7dwdr52kv2l987";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs =
lib.optional alsaSupport alsa-lib
++ lib.optional pulseaudioSupport libpulseaudio
++ lib.optional jackSupport jack;
cmakeFlags = [
"-DRTAUDIO_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_PULSE=${if pulseaudioSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_JACK=${if jackSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_CORE=${if coreaudioSupport then "ON" else "OFF"}"
];
meta = with lib; {
description = "Set of C++ classes that provide a cross platform API for realtime audio input/output";
homepage = "https://www.music.mcgill.ca/~gary/rtaudio/";
license = licenses.mit;
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,46 @@
{
stdenv,
lib,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
alsaSupport ? stdenv.hostPlatform.isLinux,
alsa-lib,
jackSupport ? true,
jack,
coremidiSupport ? stdenv.hostPlatform.isDarwin,
}:
stdenv.mkDerivation rec {
pname = "rtmidi";
version = "6.0.0";
src = fetchFromGitHub {
owner = "thestk";
repo = "rtmidi";
tag = version;
hash = "sha256-QuUeFx8rPpe0+exB3chT6dUceDa/7ygVy+cQYykq7e0=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = lib.optional alsaSupport alsa-lib ++ lib.optional jackSupport jack;
cmakeFlags = [
"-DRTMIDI_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
"-DRTMIDI_API_JACK=${if jackSupport then "ON" else "OFF"}"
"-DRTMIDI_API_CORE=${if coremidiSupport then "ON" else "OFF"}"
];
meta = {
description = "Set of C++ classes that provide a cross platform API for realtime MIDI input/output";
homepage = "https://www.music.mcgill.ca/~gary/rtmidi/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ magnetophon ];
platforms = lib.platforms.unix;
};
}