about summary refs log tree commit diff
path: root/pkgs/by-name/vk/vkd3d/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/vk/vkd3d/package.nix')
-rw-r--r--pkgs/by-name/vk/vkd3d/package.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/by-name/vk/vkd3d/package.nix b/pkgs/by-name/vk/vkd3d/package.nix
new file mode 100644
index 000000000000..4f1ddd6f12a6
--- /dev/null
+++ b/pkgs/by-name/vk/vkd3d/package.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config, wine, flex, bison
+, vulkan-headers, spirv-headers, vulkan-loader }:
+
+stdenv.mkDerivation rec {
+  pname = "vkd3d";
+  version = "1.10";
+
+  nativeBuildInputs = [ autoreconfHook pkg-config wine flex bison ];
+  buildInputs = [ vulkan-loader vulkan-headers spirv-headers ];
+
+  src = fetchFromGitLab {
+    domain = "gitlab.winehq.org";
+    owner = "wine";
+    repo = pname;
+    rev = "${pname}-${version}";
+    sha256 = "sha256-/5tc8agqpRbFRnfv8O1fBo2SPNOuO6exs0BZ9MnOTA0=";
+  };
+
+  meta = with lib; {
+    homepage = "https://gitlab.winehq.org/wine/vkd3d";
+    description = "3D graphics library with an API very similar, but not identical, to Direct3D 12";
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [ expipiplus1 ];
+    platforms = platforms.all;
+  };
+}