2023-10-19 13:55:26 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, bison, flex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcue";
|
|
|
|
version = "2.2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lipnitsk";
|
|
|
|
repo = "libcue";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm";
|
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2023-43641.patch";
|
|
|
|
url = "https://github.com/lipnitsk/libcue/commit/fdf72c8bded8d24cfa0608b8e97f2eed210a920e.patch";
|
|
|
|
hash = "sha256-NjnSMUfman/SwLFWDIhtz2jCOLfpXGGGjO3QwRGURNg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake bison flex ];
|
|
|
|
|
|
|
|
doCheck = false; # fails all the tests (ctest)
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "CUE Sheet Parser Library";
|
|
|
|
longDescription = ''
|
|
|
|
libcue is intended to parse a so called cue sheet from a char string or
|
|
|
|
a file pointer. For handling of the parsed data a convenient API is
|
|
|
|
available.
|
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/lipnitsk/libcue";
|
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ astsmtl ];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|