Nix: fix hyprland-no-hidpi

This commit is contained in:
Mihai Fufezan 2023-03-04 00:37:00 +02:00
parent 3b41169395
commit c1217066d1
No known key found for this signature in database
GPG key ID: 5899325F2F120900
2 changed files with 22 additions and 3 deletions

View file

@ -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);

View file

@ -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: {