summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libprojectm/package.nix
blob: 9c5414cc5e64ebe4931363a5dfefb63df7f5b6b3 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  libGL,
  libx11,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libprojectm";
  version = "4.1.7";

  src = fetchFromGitHub {
    owner = "projectM-visualizer";
    repo = "projectm";
    tag = "v${finalAttrs.version}";
    hash = "sha256-g7a5Ce7dEfOBGn6wMgdwujkWSi+vLeayWHClvH5W1wY=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    libGL
    libx11
  ];

  strictDeps = true;

  meta = {
    description = "Cross-platform Milkdrop-compatible Music Visualization Library";
    homepage = "https://github.com/projectM-visualizer/projectm";
    license = lib.licenses.lgpl21Plus;
    maintainers = with lib.maintainers; [ fgaz ];
    platforms = lib.platforms.all;
    longDescription = ''
      The open-source project that reimplements the esteemed Winamp Milkdrop by
      Geiss in a more modern, cross-platform reusable library.
      Read an audio input and produces mesmerizing visuals, detecting tempo, and
      rendering advanced equations into a limitless array of user-contributed visualizations.
    '';
  };
})