46 lines
779 B
Nix
46 lines
779 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, sfml
|
|
, glm
|
|
, python3
|
|
, glew
|
|
, pkg-config
|
|
, SDL2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "SHADERed";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dfranx";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "ivOd4NJgx5KWSDnXSBQLMrdvBuOm8NRzcb2S4lvOrms=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
glew
|
|
glm
|
|
python3
|
|
sfml
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|