diff --git a/pkgs/by-name/gx/gxmatcheq-lv2/package.nix b/pkgs/by-name/gx/gxmatcheq-lv2/package.nix index 5a037d1a4ef0..340f1b9a895c 100644 --- a/pkgs/by-name/gx/gxmatcheq-lv2/package.nix +++ b/pkgs/by-name/gx/gxmatcheq-lv2/package.nix @@ -1,6 +1,7 @@ { lib, stdenv, + gcc13Stdenv, fetchFromGitHub, xorg, xorgproto, @@ -8,16 +9,20 @@ lv2, pkg-config, }: - -stdenv.mkDerivation rec { +let + # see: https://github.com/brummer10/GxMatchEQ.lv2/issues/8 + # Use gcc13 on Linux, but default stdenv (clang) elsewhere + buildStdenv = if stdenv.hostPlatform.isLinux then gcc13Stdenv else stdenv; +in +buildStdenv.mkDerivation (finalAttrs: { pname = "GxMatchEQ.lv2"; version = "0.1"; src = fetchFromGitHub { owner = "brummer10"; repo = "GxMatchEQ.lv2"; - rev = "V${version}"; - sha256 = "0azdmgzqwjn26nx38iw13666a1i4y2bv39wk89pf6ihdi46klf72"; + rev = "V${finalAttrs.version}"; + hash = "sha256-4jg6DYkNRuNuQpOnsZfwJAZljBmBRzS6NcJKjv+r7Ss="; }; nativeBuildInputs = [ pkg-config ]; @@ -33,10 +38,10 @@ stdenv.mkDerivation rec { installFlags = [ "INSTALL_DIR=$(out)/lib/lv2" ]; - meta = with lib; { + meta = { homepage = "https://github.com/brummer10/GxMatchEQ.lv2"; description = "Matching Equalizer to apply EQ curve from one source to another source"; - maintainers = [ maintainers.magnetophon ]; - license = licenses.gpl3; + maintainers = with lib.maintainers; [ magnetophon ]; + license = lib.licenses.gpl3; }; -} +})