2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
cmake,
|
|
|
|
ninja,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
libX11,
|
|
|
|
libXrandr,
|
|
|
|
libXinerama,
|
|
|
|
libXcursor,
|
|
|
|
libXi,
|
|
|
|
libXext,
|
|
|
|
libGLU,
|
|
|
|
ffmpeg,
|
|
|
|
ncurses,
|
|
|
|
Cocoa,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2020-11-03 02:18:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "glslviewer";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.2.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patriciogonzalezvivo";
|
|
|
|
repo = "glslViewer";
|
2024-06-20 14:57:18 +00:00
|
|
|
fetchSubmodules = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Ve3wmX5+kABCu8IRe4ySrwsBJm47g1zvMqDbqrpQl88=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeBuildInputs = [cmake ninja pkg-config];
|
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
libXinerama
|
|
|
|
libXcursor
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
libGLU
|
|
|
|
ncurses
|
|
|
|
ffmpeg
|
|
|
|
]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Live GLSL coding renderer";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://patriciogonzalezvivo.com/2015/glslViewer/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = [maintainers.hodapp];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "glslViewer";
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|