mirror of
https://github.com/pabloaul/lsfg-vk-flake.git
synced 2025-08-28 03:16:30 -03:00
Compare commits
3 commits
ec1b66adcb
...
12763fb704
Author | SHA1 | Date | |
---|---|---|---|
|
12763fb704 | ||
|
9a826097ad | ||
|
c88ac624f0 |
2 changed files with 22 additions and 18 deletions
|
@ -6,7 +6,6 @@
|
||||||
vulkan-headers,
|
vulkan-headers,
|
||||||
vulkan-loader,
|
vulkan-loader,
|
||||||
llvmPackages,
|
llvmPackages,
|
||||||
spirv-headers,
|
|
||||||
libX11,
|
libX11,
|
||||||
libXrandr,
|
libXrandr,
|
||||||
libXinerama,
|
libXinerama,
|
||||||
|
@ -21,13 +20,13 @@
|
||||||
|
|
||||||
llvmPackages.stdenv.mkDerivation {
|
llvmPackages.stdenv.mkDerivation {
|
||||||
pname = "lsfg-vk";
|
pname = "lsfg-vk";
|
||||||
version = "unstable-2025-07-19-dd5190a";
|
version = "unstable-2025-07-20-e67fcd3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PancakeTAS";
|
owner = "PancakeTAS";
|
||||||
repo = "lsfg-vk";
|
repo = "lsfg-vk";
|
||||||
rev = "dd5190aa680a7543143e724a100bd5d6e9898dd7";
|
rev = "e67fcd3dd832c9d177ad2be780e5dd0e47810bdf";
|
||||||
hash = "sha256-2WrUtjUG8l3tSElDYfhvi4lrFUG1Oh5M7DAEX2mFh5s=";
|
hash = "sha256-c0anP3lWJ2GcjJNGIHcY/sS86AS1tFk0t7vXbaEGTQg=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,7 +48,6 @@ llvmPackages.stdenv.mkDerivation {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
spirv-headers
|
|
||||||
libX11
|
libX11
|
||||||
libXrandr
|
libXrandr
|
||||||
libXinerama
|
libXinerama
|
||||||
|
|
24
module.nix
24
module.nix
|
@ -19,9 +19,7 @@ in
|
||||||
default = lsfg-vk;
|
default = lsfg-vk;
|
||||||
};
|
};
|
||||||
|
|
||||||
losslessDLLFile =
|
losslessDLLFile = lib.mkOption
|
||||||
lib.warn "losslessDLLFile is deprecated and will only be used by lsfg-vk if LSFG_LEGACY is set."
|
|
||||||
lib.mkOption
|
|
||||||
{
|
{
|
||||||
type = with lib.types; nullOr str;
|
type = with lib.types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -45,15 +43,23 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (
|
||||||
|
lib.mkMerge [
|
||||||
|
{
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
# Installs the Vulkan implicit layer system-wide
|
# Installs the Vulkan implicit layer system-wide
|
||||||
environment.etc."vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json".source =
|
environment.etc."vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json".source =
|
||||||
"${cfg.package}/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json";
|
"${cfg.package}/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json";
|
||||||
|
}
|
||||||
environment.sessionVariables.LSFG_DLL_PATH = lib.mkIf (cfg.losslessDLLFile != null) cfg.losslessDLLFile;
|
(lib.mkIf (cfg.losslessDLLFile != null) {
|
||||||
|
environment.sessionVariables.LSFG_DLL_PATH =
|
||||||
environment.sessionVariables.LSFG_CONFIG = lib.mkIf (cfg.configFile != null) cfg.configFile;
|
lib.warn "losslessDLLFile is deprecated and will only be used by lsfg-vk if LSFG_LEGACY is set."
|
||||||
};
|
cfg.losslessDLLFile;
|
||||||
|
})
|
||||||
|
(lib.mkIf (cfg.configFile != null) {
|
||||||
|
environment.sessionVariables.LSFG_CONFIG = cfg.configFile;
|
||||||
|
})
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue