Attempt to package gamscope
This commit is contained in:
@@ -49,9 +49,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ValveSoftware";
|
owner = "ValveSoftware";
|
||||||
repo = "gamescope";
|
repo = "gamescope";
|
||||||
rev = "refs/tags/${finalAttrs.version}";
|
rev = "d0d23c4c3010c81add1bd90cbe478ce4a386e28d";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-tijFVOIMW+nkot/uRP0PNZBYZkZMMt1PcAN5+3SWzW4=";
|
hash = "sha256-Ym1kl9naAm1MGlxCk32ssvfiOlstHiZPy7Ga8EZegus=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@@ -71,6 +71,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
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
|
||||||
|
|||||||
11
pkgs/gamescope/flake.nix
Normal file
11
pkgs/gamescope/flake.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
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