Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
852 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
re2c,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libcaption";
version = "0.8";
src = fetchFromGitHub {
owner = "szatmary";
repo = "libcaption";
tag = "v${finalAttrs.version}";
hash = "sha256-9tszEKR30GHoGQ3DE9ejU3yOdtDiZwSZHiIJUPLgOdU=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ re2c ];
meta = {
description = "Free open-source CEA608 / CEA708 closed-caption encoder/decoder";
homepage = "https://github.com/szatmary/libcaption";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ pschmitt ];
};
})