depot/third_party/nixpkgs/pkgs/development/libraries/libvisual/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

31 lines
790 B
Nix

{ 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;
};
}