changes to gamescope
This commit is contained in:
parent
3c83c0a928
commit
4c7d54629a
5 changed files with 45 additions and 6 deletions
28
packages/gamescope/default.nix
Normal file
28
packages/gamescope/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
gamescope,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
let
|
||||
rev = "9416ca9334da7ff707359e5f6aa65dcfff66aa01";
|
||||
in
|
||||
gamescope.overrideAttrs (oldAttrs: {
|
||||
version = "unstable-20251206105151-9416ca";
|
||||
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "ValveSoftware";
|
||||
repo = "gamescope";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-bZXyNmhLG1ZcD9nNKG/BElp6I57GAwMSqAELu2IZnqA=";
|
||||
};
|
||||
|
||||
# Unsure if this bit is necessary, though I guess it's nice to have the version gamescope shows match
|
||||
postPatch = (oldAttrs.postPatch or "") + ''
|
||||
substituteInPlace src/meson.build \
|
||||
--replace-fail "'git', 'describe', '--always', '--tags', '--dirty=+'" "'echo', '${rev}'"
|
||||
|
||||
patchShebangs default_extras_install.sh
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue