Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 8 callPackage, 9 10 # for passthru.tests 11 imagemagick, 12 libheif, 13 imlib2Full, 14 gst_all_1, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 version = "1.0.16"; 19 pname = "libde265"; 20 21 src = fetchFromGitHub { 22 owner = "strukturag"; 23 repo = "libde265"; 24 tag = "v${finalAttrs.version}"; 25 hash = "sha256-4Y7tuVeDLoONU6/R/47QhGtzBiM9mtl4O++CN+KCUn4="; 26 }; 27 28 nativeBuildInputs = [ 29 cmake 30 pkg-config 31 ]; 32 33 enableParallelBuilding = true; 34 35 passthru.tests = { 36 inherit imagemagick libheif imlib2Full; 37 inherit (gst_all_1) gst-plugins-bad; 38 39 test-corpus-decode = callPackage ./test-corpus-decode.nix { 40 libde265 = finalAttrs.finalPackage; 41 }; 42 }; 43 44 meta = { 45 homepage = "https://github.com/strukturag/libde265"; 46 description = "Open h.265 video codec implementation"; 47 mainProgram = "dec265"; 48 license = lib.licenses.lgpl3; 49 platforms = lib.platforms.unix; 50 maintainers = with lib.maintainers; [ ]; 51 }; 52})