depot/third_party/nixpkgs/pkgs/by-name/vk/vkd3d-proton/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

50 lines
1.1 KiB
Nix

{
lib,
callPackage,
glslang,
meson,
ninja,
stdenv,
wine,
}:
let
sources = callPackage ./sources.nix { };
in
stdenv.mkDerivation (finalAttrs: {
inherit (sources.vkd3d-proton) pname version src;
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
glslang
meson
ninja
wine
];
strictDeps = true;
postPatch = ''
substituteInPlace meson.build \
--replace-fail "vkd3d_build = vcs_tag(" \
"vkd3d_build = vcs_tag( fallback : '$(cat .nixpkgs-auxfiles/vkd3d_build)'", \
--replace-fail "vkd3d_version = vcs_tag(" \
"vkd3d_version = vcs_tag( fallback : '$(cat .nixpkgs-auxfiles/vkd3d_version)'",
'';
passthru = {
inherit sources;
};
meta = {
homepage = "https://github.com/HansKristian-Work/vkd3d-proton";
description = "A fork of VKD3D, which aims to implement the full Direct3D 12 API on top of Vulkan";
license = with lib.licenses; [ lgpl21Plus ];
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wine.meta) platforms;
};
})