about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libvisual/default.nix
blob: 8fe53acc24568d49ea934a83d7e527a9e9dff2e7 (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
{ stdenv, fetchurl, pkgconfig, glib }:

stdenv.mkDerivation rec {
  name = "libvisual-0.4.0";

  src = fetchurl {
    url = "mirror://sourceforge/libvisual/${name}.tar.gz";
    sha256 = "1my1ipd5k1ixag96kwgf07bgxkjlicy9w22jfxb2kq95f6wgsk8b";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ glib ];

  hardeningDisable = [ "format" ];

  configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
    "ac_cv_func_malloc_0_nonnull=yes"
    "ac_cv_func_realloc_0_nonnull=yes"
  ];

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