Files
nixpkgs/pkgs/by-name/li/libcue/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

49 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
bison,
flex,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libcue";
version = "2.3.0";
src = fetchFromGitHub {
owner = "lipnitsk";
repo = "libcue";
rev = "v${finalAttrs.version}";
hash = "sha256-ZMUUa8CmpFNparPsM/P2yvRto9E85EdTxpID5sKQbNI=";
};
nativeBuildInputs = [
cmake
bison
flex
];
# Fix the build with CMake 4.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)' \
'CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)'
'';
doCheck = true;
meta = {
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 = lib.licenses.gpl2Only;
platforms = lib.platforms.unix;
};
})