Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 70 lines 1.8 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchpatch2, 5 fetchurl, 6 autoreconfHook, 7 libdvdread, 8 libxml2, 9 freetype, 10 fribidi, 11 libpng, 12 zlib, 13 pkg-config, 14 flex, 15 bison, 16}: 17 18stdenv.mkDerivation rec { 19 pname = "dvdauthor"; 20 version = "0.7.2"; 21 22 src = fetchurl { 23 url = "mirror://sourceforge/dvdauthor/dvdauthor-${version}.tar.gz"; 24 hash = "sha256-MCCpLen3jrNvSLbyLVoAHEcQeCZjSnhaYt/NCA9hLrc="; 25 }; 26 27 patches = [ 28 (fetchpatch2 { 29 # remove after next release: "Use pkg-config to find FreeType" 30 url = "https://github.com/ldo/dvdauthor/commit/d5bb0bdd542c33214855a7062fcc485f8977934e.patch?full_index=1"; 31 hash = "sha256-cCj1Wkc6dZvUpjentpK68Q92tb7h+OXwrqdhJ2KYMvU="; 32 }) 33 (fetchpatch2 { 34 # remove after next release: "fix to build with GraphicsMagick" (required for subsequent patches to apply) 35 url = "https://github.com/ldo/dvdauthor/commit/84d971def13b7e6317eae44369f49fd709b01030.patch?full_index=1"; 36 hash = "sha256-SWgbaS4cdvrXJ4H5KDM0S46H57rji7CX4Fkfa/RSSPA="; 37 }) 38 (fetchpatch2 { 39 # remove after next release: "Use PKG_CHECK_MODULES to detect the libxml2 library" 40 url = "https://github.com/ldo/dvdauthor/commit/45705ece5ec5d7d6b9ab3e7a68194796a398e855.patch?full_index=1"; 41 hash = "sha256-tykCr2Axc1qhUvjlGyXQ6X+HwzuFTm5Va2gjGlOlSH0="; 42 }) 43 ./gettext-0.25.patch 44 ]; 45 46 buildInputs = [ 47 libpng 48 freetype 49 libdvdread 50 libxml2 51 zlib 52 fribidi 53 flex 54 bison 55 ]; 56 57 nativeBuildInputs = [ 58 pkg-config 59 autoreconfHook 60 ]; 61 62 strictDeps = true; 63 64 meta = with lib; { 65 description = "Tools for generating DVD files to be played on standalone DVD players"; 66 homepage = "https://dvdauthor.sourceforge.net/"; # or https://github.com/ldo/dvdauthor 67 license = licenses.gpl2; 68 platforms = platforms.linux ++ platforms.darwin; 69 }; 70}