mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
9b1c668127
Duckstation now uses a vendored shaderc. However, this vendoring is provided by a patch.
22 lines
445 B
Nix
22 lines
445 B
Nix
{
|
|
lib,
|
|
fetchpatch,
|
|
duckstation,
|
|
shaderc,
|
|
}:
|
|
|
|
shaderc.overrideAttrs (old: {
|
|
pname = "shaderc-patched-for-duckstation";
|
|
patches = (old.patches or [ ]) ++ [
|
|
(fetchpatch {
|
|
url = "file://${duckstation.src}/scripts/shaderc-changes.patch";
|
|
hash = "sha256-Ps/D+CdSbjVWg3ZGOEcgbpQbCNkI5Nuizm4E5qiM9Wo=";
|
|
excludes = [
|
|
"CHANGES"
|
|
"CMakeLists.txt"
|
|
"libshaderc/CMakeLists.txt"
|
|
];
|
|
})
|
|
];
|
|
})
|