mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
40 lines
914 B
Nix
40 lines
914 B
Nix
{ lib, stdenv, fetchFromGitHub, lv2, libX11, libGL, libGLU, mesa, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aether-lv2";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dougal-s";
|
|
repo = "aether";
|
|
rev = "v${version}";
|
|
sha256 = "0xhih4smjxn87s0f4gaab51d8594qlp0lyypzxl5lm37j1i9zigs";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
lv2 libX11 libGL libGLU mesa
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
# Needed with GCC 12
|
|
"-Wno-error=array-bounds"
|
|
"-Wno-error=stringop-overflow"
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/lv2
|
|
cp -r aether.lv2 $out/lib/lv2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://dougal-s.github.io/Aether/";
|
|
description = "An algorithmic reverb LV2 based on Cloudseed";
|
|
maintainers = [ maintainers.magnetophon ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
};
|
|
}
|