Change gamescope to gamescope-old
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
{ lib, pkgs, localPackages, ... }: {
|
{ lib, pkgs, localPackages, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; with localPackages.x86_64-linux; [
|
||||||
protonup-qt
|
protonup-qt
|
||||||
vesktop
|
vesktop
|
||||||
localPackages.x86_64-linux.gamescope
|
lutris
|
||||||
|
gamescope-old
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
kickoff-dot-desktop = pkgs.callPackage ./pkgs/kickoff-dot-desktop.nix { };
|
kickoff-dot-desktop = pkgs.callPackage ./pkgs/kickoff-dot-desktop.nix { };
|
||||||
gamescope = pkgs.callPackage ./pkgs/gamescope {};
|
gamescope-old = pkgs.callPackage ./pkgs/gamescope-old {};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -68,15 +68,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
substituteInPlace src/reshade_effect_manager.cpp --replace "@out@" "$out"
|
substituteInPlace src/reshade_effect_manager.cpp --replace "@out@" "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
(lib.mesonBool "enable_gamescope" enableExecutable)
|
(lib.mesonBool "enable_gamescope" enableExecutable)
|
||||||
(lib.mesonBool "enable_gamescope_wsi_layer" enableWsi)
|
(lib.mesonBool "enable_gamescope_wsi_layer" enableWsi)
|
||||||
"-Dc_args=-fno-omit-frame-pointer"
|
|
||||||
"-Dc_link_args=-fno-omit-frame-pointer"
|
|
||||||
"-Dcpp_args=-fno-omit-frame-pointer"
|
|
||||||
"-Dcpp_link_args=-fno-omit-frame-pointer"
|
|
||||||
"--buildtype=debugoptimized"
|
|
||||||
"-Db_sanitize=address,undefined"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# don't install vendored vkroots etc
|
# don't install vendored vkroots etc
|
||||||
@@ -137,7 +132,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
postInstall = lib.optionalString enableExecutable ''
|
postInstall = lib.optionalString enableExecutable ''
|
||||||
# using patchelf unstable because the stable version corrupts the binary
|
# using patchelf unstable because the stable version corrupts the binary
|
||||||
${lib.getExe patchelfUnstable} $out/bin/gamescope \
|
${lib.getExe patchelfUnstable} $out/bin/gamescope \
|
||||||
--add-rpath ${vulkan-loader}/lib --add-needed libvulkan.so.1
|
--add-rpath ${vulkan-loader}/lib \
|
||||||
|
--add-needed libvulkan.so.1 \
|
||||||
|
|
||||||
# --debug-layers flag expects these in the path
|
# --debug-layers flag expects these in the path
|
||||||
wrapProgram "$out/bin/gamescope" \
|
wrapProgram "$out/bin/gamescope" \
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {self, nixpkgs}:
|
|
||||||
let
|
|
||||||
pkgs = nixpkgs.legacyPackages;
|
|
||||||
in
|
|
||||||
pkgs.callPackage ./. {};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user