Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 30 lines 678 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, cmake 5, re2c 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "libcaption"; 10 version = "0.7"; 11 12 src = fetchFromGitHub { 13 owner = "szatmary"; 14 repo = "libcaption"; 15 rev = finalAttrs.version; 16 sha256 = "sha256-OBtxoFJF0cxC+kfSK8TIKIdLkmCh5WOJlI0fejnisJo="; 17 fetchSubmodules = true; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 buildInputs = [ re2c ]; 22 23 meta = with lib; { 24 description = "Free open-source CEA608 / CEA708 closed-caption encoder/decoder"; 25 homepage = "https://github.com/szatmary/libcaption"; 26 license = licenses.mit; 27 platforms = platforms.all; 28 maintainers = with maintainers; [ pschmitt ]; 29 }; 30})