From acae9b0336b7fe1e0f7d82e377f353f7e36b5d92 Mon Sep 17 00:00:00 2001 From: Scriptkiddi Date: Sat, 10 Oct 2020 13:10:41 +0200 Subject: [PATCH] shadered: init at 1.4.1 --- pkgs/development/tools/shadered/default.nix | 45 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/tools/shadered/default.nix diff --git a/pkgs/development/tools/shadered/default.nix b/pkgs/development/tools/shadered/default.nix new file mode 100644 index 000000000000..01c16b139468 --- /dev/null +++ b/pkgs/development/tools/shadered/default.nix @@ -0,0 +1,45 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b9a206e1803..23acd2ed95cf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6905,6 +6905,8 @@ in shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { }; + shadered = callPackage ../development/tools/shadered { }; + go-shadowsocks2 = callPackage ../tools/networking/go-shadowsocks2 { }; shabnam-fonts = callPackage ../data/fonts/shabnam-fonts { };