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