1 { stdenv, fetchFromGitHub, pkg-config, libGL, glfw, soil, lib }:
5 version = "unstable-2020-08-09";
7 src = fetchFromGitHub {
10 rev = "506eb02f3de52d3d1f4d81ac9ee145655216dee5";
11 sha256 = "sha256-euxJw7CqOwi6Ndzalps37kDr5oOIL3tZICCfmxsujfk=";
15 substituteInPlace config.mk \
16 --replace "-lGLESv2" "-lGL -lGLESv2"
28 cp -a esshader $out/bin/
32 description = "Offline ShaderToy-compatible GLSL shader viewer using OpenGL ES 2.0";
33 homepage = "https://github.com/cmcsun/esshader";
34 license = licenses.mit;
35 maintainers = with maintainers; [ astro ];
36 platforms = lib.platforms.unix;
37 # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
38 broken = stdenv.hostPlatform.isDarwin;
39 mainProgram = "esshader";