Merge pull request #294280 from atorres1985-contrib/vkd3d

vkd3d: 1.10 -> 1.12
This commit is contained in:
Sandro 2024-06-18 01:34:28 +02:00 committed by GitHub
commit 9d739393c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 63 additions and 28 deletions

View File

@ -0,0 +1,63 @@
{
lib,
autoreconfHook,
bison,
fetchFromGitLab,
flex,
pkg-config,
spirv-headers,
stdenv,
vulkan-headers,
vulkan-loader,
wine,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vkd3d";
version = "1.12";
src = fetchFromGitLab {
domain = "gitlab.winehq.org";
owner = "wine";
repo = "vkd3d";
rev = "vkd3d-${finalAttrs.version}";
hash = "sha256-9FNuWtfJJqkSZ3O11G22aNp8PfseLHH4oyL6MulNwMY=";
};
outputs = [ "out" "dev" "lib" ];
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
wine
];
buildInputs = [
spirv-headers
vulkan-headers
vulkan-loader
];
strictDeps = true;
meta = {
homepage = "https://gitlab.winehq.org/wine/vkd3d";
description = "Direct3D to Vulkan translation library";
longDescription = ''
Vkd3d is a 3D graphics library built on top of Vulkan. It has an API very
similar, but not identical, to Direct3D 12.
Vkd3d can be used by projects that target Direct3D 12 as a drop-in
replacement at build-time with some modest source modifications.
If vkd3d is available when building Wine, then Wine will use it to support
Direct3D 12 applications.
'';
license = with lib.licenses; [ lgpl21Plus ];
mainProgram = "vkd3d-compiler";
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wine.meta) platforms;
};
})

View File

@ -1,26 +0,0 @@
{ 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;
};
}

View File

@ -24725,8 +24725,6 @@ with pkgs;
hdf5 = hdf5.override { usev110Api = true; }; hdf5 = hdf5.override { usev110Api = true; };
}; };
vkd3d = callPackage ../development/libraries/vkd3d {};
vkd3d-proton = callPackage ../development/libraries/vkd3d-proton {}; vkd3d-proton = callPackage ../development/libraries/vkd3d-proton {};
vkdisplayinfo = callPackage ../tools/graphics/vkdisplayinfo { }; vkdisplayinfo = callPackage ../tools/graphics/vkdisplayinfo { };