Commit ad1a442f authored by Thomas Gerbet's avatar Thomas Gerbet
Browse files
parent 3004751e
Loading
Loading
Loading
Loading
+4 −12
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, bison, flex }:
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex }:

stdenv.mkDerivation rec {
  pname = "libcue";
  version = "2.2.1";
  version = "2.3.0";

  src = fetchFromGitHub {
    owner = "lipnitsk";
    repo = "libcue";
    rev = "v${version}";
    sha256 = "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm";
    hash = "sha256-ZMUUa8CmpFNparPsM/P2yvRto9E85EdTxpID5sKQbNI=";
  };

  patches = [
    (fetchpatch {
      name = "CVE-2023-43641.patch";
      url = "https://github.com/lipnitsk/libcue/commit/fdf72c8bded8d24cfa0608b8e97f2eed210a920e.patch";
      hash = "sha256-NjnSMUfman/SwLFWDIhtz2jCOLfpXGGGjO3QwRGURNg=";
    })
  ];

  nativeBuildInputs = [ cmake bison flex ];

  doCheck = false; # fails all the tests (ctest)
  doCheck = true;

  meta = with lib; {
    description = "CUE Sheet Parser Library";