about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/bonzomatic/default.nix
blob: 4b6480639b377ce3e89bdd123e75c05ee0999455 (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
{ lib, stdenv, makeWrapper, fetchFromGitHub, cmake, alsaLib, mesa_glu, libXcursor, libXinerama, libXrandr, xorgserver }:

stdenv.mkDerivation rec {
  pname = "bonzomatic";
  version = "2018-03-29";

  src = fetchFromGitHub {
    owner = "Gargaj";
    repo = pname;
    rev = version;
    sha256 = "12mdfjvbhdqz1585772rj4cap8m4ijfci6ib62jysxjf747k41fg";
  };

  nativeBuildInputs = [ cmake makeWrapper ];
  buildInputs = [ alsaLib mesa_glu libXcursor libXinerama libXrandr xorgserver ];

  postFixup = ''
    wrapProgram $out/bin/Bonzomatic --prefix LD_LIBRARY_PATH : "${alsaLib}/lib"
  '';

  meta = with lib; {
    description = "A live-coding tool for writing 2D fragment/pixel shaders";
    license = with licenses; [
      unlicense
      unfreeRedistributable # contains libbass.so in repository
    ];
    maintainers = [ maintainers.ilian ];
    platforms = [ "i686-linux" "x86_64-linux" ];
  };
}