b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcue";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lipnitsk";
|
|
repo = "libcue";
|
|
rev = "v${version}";
|
|
sha256 = "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm";
|
|
};
|
|
|
|
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)
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
homepage = "https://github.com/lipnitsk/libcue";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ astsmtl ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|