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
47
48
49
50
51
52
53
54
|
{
stdenv,
cmake,
ninja,
lib,
fetchFromGitHub,
pkg-config,
libX11,
libXrandr,
libXinerama,
libXcursor,
libXi,
libXext,
libGLU,
ffmpeg,
ncurses,
Cocoa,
}:
stdenv.mkDerivation rec {
pname = "glslviewer";
version = "3.2.4";
src = fetchFromGitHub {
owner = "patriciogonzalezvivo";
repo = "glslViewer";
fetchSubmodules = true;
rev = version;
sha256 = "sha256-Ve3wmX5+kABCu8IRe4ySrwsBJm47g1zvMqDbqrpQl88=";
};
nativeBuildInputs = [cmake ninja pkg-config];
buildInputs =
[
libX11
libXrandr
libXinerama
libXcursor
libXi
libXext
libGLU
ncurses
ffmpeg
]
++ lib.optional stdenv.isDarwin Cocoa;
meta = with lib; {
description = "Live GLSL coding renderer";
homepage = "https://patriciogonzalezvivo.com/2015/glslViewer/";
license = licenses.bsd3;
maintainers = [maintainers.hodapp];
platforms = platforms.unix;
mainProgram = "glslViewer";
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin;
};
}
|