nixpkgs/pkgs/applications/audio/mamba/default.nix
Maximilian Bosch a44542f7f6
mamba: mark as broken
Failing Hydra build: https://hydra.nixos.org/build/230518081

So apparently `vasprintf`, `asprintf` are now available by default, not
just with `_GNU_SOURCE` and now `mamba` (or to be precise, its
dependency `xputty`) fails like this:

    ../xputty/xfilepicker.c:225:5: error: format not a string literal and no format arguments [-Werror=format-security]
      225 |     asprintf(&filepicker->path, path);
          |     ^~~~~~~~

It seems as if now that these functions are available by default, the
format-security check from gcc actually works.
2023-09-24 15:12:07 +02:00

45 lines
1021 B
Nix

{ lib, stdenv
, fetchFromGitHub
, pkg-config
, xxd
, cairo
, fluidsynth
, libX11
, libjack2
, alsa-lib
, liblo
, libsigcxx
, libsmf
}:
stdenv.mkDerivation rec {
pname = "mamba";
version = "2.3";
src = fetchFromGitHub {
owner = "brummer10";
repo = "Mamba";
rev = "v${version}";
sha256 = "sha256-Dj8yPmuEtDVgu6Gm6aEY+dgJ0dtwB8RPg9EuaVAsiIs=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config xxd ];
buildInputs = [ cairo fluidsynth libX11 libjack2 alsa-lib liblo libsigcxx libsmf ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/brummer10/Mamba";
description = "Virtual MIDI keyboard for Jack Audio Connection Kit";
license = licenses.bsd0;
maintainers = with maintainers; [ magnetophon orivej ];
platforms = platforms.linux;
# 2023-08-19, `-Werror=format-security` fails for xputty
# reported as https://github.com/brummer10/libxputty/issues/12
broken = true;
};
}