1{ stdenv
2, lib
3, fetchFromGitHub
4, cmake
5, sfml
6, glm
7, python3
8, glew
9, pkg-config
10, SDL2 }:
11
12stdenv.mkDerivation rec {
13 pname = "SHADERed";
14 version = "1.5.6";
15
16 src = fetchFromGitHub {
17 owner = "dfranx";
18 repo = pname;
19 rev = "v${version}";
20 fetchSubmodules = true;
21 sha256 = "0drf8wwx0gcmi22jq2yyjy7ppxynfq172wqakchscm313j248fjr";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 ];
28
29 buildInputs = [
30 SDL2
31 glew
32 glm
33 python3
34 sfml
35 ];
36
37 patches = [
38 ./install_path_fix.patch
39 ];
40
41 NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
42
43 meta = with lib; {
44 description = "Lightweight, cross-platform & full-featured shader IDE";
45 homepage = "https://github.com/dfranx/SHADERed";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ Scriptkiddi ];
48 };
49}