Unverified Commit 02eb14f0 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

gxmatcheq: fix build (#455874)

parents cf603b6d 18042df4
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
{
  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;
  };
}
})