mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 22:05:59 +01:00
Nix: fix hyprland-no-hidpi
This commit is contained in:
parent
3b41169395
commit
c1217066d1
2 changed files with 22 additions and 3 deletions
19
flake.nix
19
flake.nix
|
@ -32,7 +32,24 @@
|
|||
"x86_64-linux"
|
||||
];
|
||||
|
||||
pkgsFor = nixpkgs.legacyPackages;
|
||||
pkgsFor = genSystems (system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(_: prev: {
|
||||
libdisplay-info = prev.libdisplay-info.overrideAttrs (old: {
|
||||
version = "0.1.1+date=2023-03-02";
|
||||
src = prev.fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "emersion";
|
||||
repo = old.pname;
|
||||
rev = "147d6611a64a6ab04611b923e30efacaca6fc678";
|
||||
sha256 = "sha256-/q79o13Zvu7x02SBGu0W5yQznQ+p7ltZ9L6cMW5t/o4=";
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
});
|
||||
|
||||
props = builtins.fromJSON (builtins.readFile ./props.json);
|
||||
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
fetchpatch,
|
||||
lib,
|
||||
hwdata,
|
||||
hidpiXWayland ? true,
|
||||
libliftoff,
|
||||
libdisplay-info,
|
||||
hidpiXWayland ? false,
|
||||
enableXWayland ? true,
|
||||
nvidiaPatches ? false,
|
||||
}:
|
||||
|
@ -58,7 +60,7 @@ assert (lib.assertMsg (hidpiXWayland -> enableXWayland) ''
|
|||
''
|
||||
else ""
|
||||
);
|
||||
buildInputs = old.buildInputs ++ [hwdata];
|
||||
buildInputs = old.buildInputs ++ [hwdata libliftoff libdisplay-info];
|
||||
}))
|
||||
.override {
|
||||
xwayland = xwayland.overrideAttrs (old: {
|
||||
|
|
Loading…
Reference in a new issue