summary refs log tree commit diff
path: root/pkgs/development/libraries/libvisual/default.nix
blob: b58c25401c908c73d4358fc2e0cb7a1f2b56b9bb (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
{ lib
, stdenv
, fetchurl
, SDL
, glib
, pkg-config
  # sdl-config is not available when crossing
, withExamples ? stdenv.buildPlatform == stdenv.hostPlatform
}:

stdenv.mkDerivation rec {
  pname = "libvisual";
  version = "0.4.1";

  src = fetchurl {
    url = "mirror://sourceforge/libvisual/${pname}-${version}.tar.gz";
    hash = "sha256-qhKHdBf3bTZC2fTHIzAjgNgzF1Y51jpVZB0Bkopd230=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = lib.optional withExamples SDL ++ [ glib ];

  configureFlags = lib.optional (!withExamples) "--disable-examples";

  meta = {
    description = "An abstraction library for audio visualisations";
    homepage = "https://sourceforge.net/projects/libvisual/";
    license = lib.licenses.lgpl21Plus;
    platforms = lib.platforms.linux;
  };
}