about summary refs log tree commit diff
path: root/pkgs/development/libraries/libvorbis/default.nix
blob: 945bba3d4ea1716bb3b0748202067212d6385d0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, libogg, xz }:

stdenv.mkDerivation rec {
  name = "libvorbis-1.3.3";

  src = fetchurl {
    url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
    sha256 = "1gby6hapz9njx4l9g0pndyk4q83z5fgrgc30mfwfgx7bllspsk43";
  };

  buildNativeInputs = [ xz ];
  propagatedBuildInputs = [ libogg ];

  outputs = [ "dev" "out" "doc" ];

  configureFlags = [ "--includedir=$(dev)/include" ];

  installFlags = [ "pkgconfigdir=$(dev)/lib/pkgconfig" ];

  postInstall =
    ''
      mkdir -p $doc/share/doc
      mv $out/share/doc/* $doc/share/doc

      mkdir -p "$dev/nix-support"
      echo "$propagatedBuildNativeInputs $out" > "$dev/nix-support/propagated-build-native-inputs"
      propagatedBuildNativeInputs=
    ''; # */

  meta = {
    homepage = http://xiph.org/vorbis/;
  };
}