lol
1{lib, stdenv, fetchurl, pkg-config, libdvdread}:
2
3stdenv.mkDerivation rec {
4 pname = "libdvdnav";
5 version = "4.2.1";
6
7 src = fetchurl {
8 url = "http://dvdnav.mplayerhq.hu/releases/libdvdnav-${version}.tar.xz";
9 sha256 = "7fca272ecc3241b6de41bbbf7ac9a303ba25cb9e0c82aa23901d3104887f2372";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [libdvdread];
14
15 configureScript = "./configure2"; # wtf?
16
17 preConfigure = ''
18 mkdir -p $out
19 '';
20
21 meta = {
22 homepage = "http://dvdnav.mplayerhq.hu/";
23 description = "A library that implements DVD navigation features such as DVD menus";
24 mainProgram = "dvdnav-config";
25 license = lib.licenses.gpl2;
26 maintainers = [ lib.maintainers.wmertens ];
27 platforms = lib.platforms.linux;
28 };
29
30 passthru = { inherit libdvdread; };
31}