2023-01-26 21:59:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL
|
|
|
|
, glib
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2013-08-11 04:15:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 15:15:21 +01:00
|
|
|
pname = "libvisual";
|
2023-01-26 21:59:47 +00:00
|
|
|
version = "0.4.1";
|
2013-08-11 04:15:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 15:15:21 +01:00
|
|
|
url = "mirror://sourceforge/libvisual/${pname}-${version}.tar.gz";
|
2023-01-26 21:59:47 +00:00
|
|
|
hash = "sha256-qhKHdBf3bTZC2fTHIzAjgNgzF1Y51jpVZB0Bkopd230=";
|
2013-08-11 04:15:07 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-01-26 21:59:47 +00:00
|
|
|
buildInputs = [ SDL glib ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-03-07 22:12:03 +00:00
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2013-08-11 04:15:07 +01:00
|
|
|
meta = {
|
|
|
|
description = "An abstraction library for audio visualisations";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/libvisual/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2013-08-11 04:15:07 +01:00
|
|
|
};
|
|
|
|
}
|