Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shader-slang: init at v2025.1 #370147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7217,6 +7217,12 @@
githubId = 873530;
name = "Alexey Levan";
};
expenses = {
email = "[email protected]";
github = "expenses";
githubId = 13566135;
name = "Ashley Ruglys";
};
exploitoverload = {
email = "[email protected]";
github = "exploitoverload";
Expand Down
34 changes: 34 additions & 0 deletions pkgs/by-name/sh/shader-slang/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, cmake, python3, llvmPackages_13, xorg, }:
stdenv.mkDerivation (finalAttrs: {
name = "shader-slang";
version = "v2025.1";
nativeBuildInputs = [ cmake python3 ];
buildInputs =
[ llvmPackages_13.libllvm llvmPackages_13.clang-unwrapped xorg.libX11 ];
src = fetchFromGitHub {
owner = "shader-slang";
repo = "slang";
rev = finalAttrs.version;
hash = "sha256-uTf2GOEaqcZ8ZKGBFit5UU1JycMLYpKSq0Zvxxct+JI=";
fetchSubmodules = true;
};
cmakeFlags = [ "-DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM" ];
meta = with lib; {
description = "The Slang Shading Language and Compiler";
longDescription = ''
The Slang shading language and compiler is a proven open-source technology
empowering real-time graphics developers with flexible, innovative
features that complement existing shading languages, including neural
computation inside graphics shaders. Slang’s support for modular code
significantly simplifies the development and maintenance of large
codebases, while its compiler enables smooth migration paths for existing
HLSL and GLSL shaders. The Slang compiler also supports multiple backend
targets for portable code deployment across diverse APIs and platforms.
'';
homepage = "https://shader-slang.com/";
license = licenses.asl20-llvm;
mainProgram = "slangc";
platforms = platforms.all;
maintainers = with maintainers; [ expenses ];
};
})
Loading