mirror of
https://github.com/materusPL/Nixerus.git
synced 2026-06-26 18:36:42 +00:00
swiftshader: init package | obs-studio: use swiftshader
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ pkgs, lib, stdenv, fetchFromGitHub, cmake, python3 }:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "swiftshader";
|
||||
version = "20072023";
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "SwiftShader";
|
||||
rev = "4a260c12b8c155103435a7b2b99b5227f6ce7594";
|
||||
sha256 = "sha256-WcA1EazeuRlFhIaAKgJHp+rUkCR2vqcINkTMYOgrbNI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [ cmake python3 ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
mv libvk_swiftshader.so $out/lib
|
||||
'';
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "SwiftShader is a high-performance CPU-based implementation of the Vulkan 1.3 graphics API";
|
||||
homepage = "https://swiftshader.googlesource.com/SwiftShader";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user