Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 34 lines 906 B view raw
1{ stdenv, fetchgit, yasm, perl, cmake, pkgconfig, python3, writeText }: 2 3stdenv.mkDerivation rec { 4 name = "libaom-${version}"; 5 version = "1.0.0-errata1"; 6 7 src = fetchgit { 8 url = "https://aomedia.googlesource.com/aom"; 9 rev = "v${version}"; 10 sha256 = "090phh4jl9z6m2pwpfpwcjh6iyw0byngb2n112qxkg6a3gsaa62f"; 11 }; 12 13 nativeBuildInputs = [ 14 yasm perl cmake pkgconfig python3 15 ]; 16 17 preConfigure = '' 18 # build uses `git describe` to set the build version 19 cat > $NIX_BUILD_TOP/git << "EOF" 20 #!${stdenv.shell} 21 echo v${version} 22 EOF 23 chmod +x $NIX_BUILD_TOP/git 24 export PATH=$NIX_BUILD_TOP:$PATH 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "AV1 Bitstream and Decoding Library"; 29 homepage = https://aomedia.org/av1-features/get-started/; 30 maintainers = with maintainers; [ kiloreux ]; 31 platforms = platforms.all; 32 license = licenses.bsd2; 33 }; 34}