depot/third_party/nixpkgs/pkgs/development/tools/glslviewer/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

54 lines
1.1 KiB
Nix

{
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;
hash = "sha256-Ve3wmX5+kABCu8IRe4ySrwsBJm47g1zvMqDbqrpQl88=";
};
nativeBuildInputs = [cmake ninja pkg-config];
buildInputs =
[
libX11
libXrandr
libXinerama
libXcursor
libXi
libXext
libGLU
ncurses
ffmpeg
]
++ lib.optional stdenv.hostPlatform.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.hostPlatform.isDarwin;
};
}