Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 42 lines 822 B view raw
1{lib 2, stdenv 3, fetchFromGitHub 4, cmake 5 6# for passthru.tests 7, gst_all_1 8, mpd 9, ocamlPackages 10, vlc 11}: 12 13stdenv.mkDerivation rec { 14 pname = "faad2"; 15 version = "2.11.1"; 16 17 src = fetchFromGitHub { 18 owner = "knik0"; 19 repo = "faad2"; 20 rev = version; 21 hash = "sha256-E6oe7yjYy1SJo8xQkyUk1sSucKDMPxwUFVSAyrf4Pd8="; 22 }; 23 24 outputs = [ "out" "dev" "man" ]; 25 26 nativeBuildInputs = [ cmake ]; 27 28 passthru.tests = { 29 inherit mpd vlc; 30 inherit (gst_all_1) gst-plugins-bad; 31 ocaml-faad = ocamlPackages.faad; 32 }; 33 34 meta = with lib; { 35 description = "Open source MPEG-4 and MPEG-2 AAC decoder"; 36 homepage = "https://sourceforge.net/projects/faac/"; 37 license = licenses.gpl2Plus; 38 maintainers = with maintainers; [ codyopel ]; 39 mainProgram = "faad"; 40 platforms = platforms.all; 41 }; 42}