nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 948 B view raw
1{ 2 buildOctavePackage, 3 stdenv, 4 lib, 5 fetchFromGitHub, 6 pkg-config, 7 autoconf, 8 automake, 9 ffmpeg_7, 10}: 11 12buildOctavePackage rec { 13 pname = "video"; 14 version = "2.1.3"; 15 16 src = fetchFromGitHub { 17 owner = "Andy1978"; 18 repo = "octave-video"; 19 tag = version; 20 hash = "sha256-fn9LNfuS9dSStBfzBjRRkvP50JJ5K+Em02J9+cHqt6w="; 21 }; 22 23 preBuild = '' 24 pushd src 25 patchShebangs bootstrap configure 26 ./bootstrap 27 ./configure 28 popd 29 30 tar --transform 's,^,video-${version}/,' -cz * -f video-${version}.tar.gz 31 ''; 32 33 nativeBuildInputs = [ 34 pkg-config 35 autoconf 36 automake 37 ]; 38 39 propagatedBuildInputs = [ 40 ffmpeg_7 41 ]; 42 43 meta = { 44 homepage = "https://gnu-octave.github.io/packages/video/"; 45 license = with lib.licenses; [ 46 gpl3Plus 47 bsd3 48 ]; 49 maintainers = with lib.maintainers; [ KarlJoad ]; 50 description = "Wrapper for OpenCV's CvCapture_FFMPEG and CvVideoWriter_FFMPEG"; 51 }; 52}