about summary refs log tree commit diff
path: root/pkgs/development/tools/shadered/default.nix
blob: 07397f48ad1530eaf3609ec2233c180fe8dfeff0 (plain) (blame)
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
{ stdenv
, lib
, fetchFromGitHub
, cmake
, sfml
, glm
, python3
, glew
, pkg-config
, SDL2 }:

stdenv.mkDerivation rec {
  pname = "SHADERed";
  version = "1.5.6";

  src = fetchFromGitHub {
    owner = "dfranx";
    repo = pname;
    rev = "v${version}";
    fetchSubmodules = true;
    sha256 = "0drf8wwx0gcmi22jq2yyjy7ppxynfq172wqakchscm313j248fjr";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    SDL2
    glew
    glm
    python3
    sfml
  ];

  patches = [
    ./install_path_fix.patch
  ];

  env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security";

  meta = with lib; {
    description = "Lightweight, cross-platform & full-featured shader IDE";
    homepage = "https://github.com/dfranx/SHADERed";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ Scriptkiddi ];
  };
}