summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <fufexan@protonmail.com>2022-11-20 15:31:09 +0200
committerMihai Fufezan <fufexan@pm.me>2022-11-20 17:34:11 +0200
commit11e841580fdd630e8cfd32c2a7d89f71999cb67a (patch)
treedd2a5431ee8097f144828a91f645395dadabaf62
parentf8b91383835bd2cfc03ad5e2337f3a25332f7cb4 (diff)
Nix: add libdrm and wayland-protocols overlay
fixes #1055
-rw-r--r--flake.nix29
1 files changed, 23 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 111a7743..4f7ab24b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,12 +21,29 @@
"x86_64-linux"
];
- pkgsFor = genSystems (system: import nixpkgs {
- inherit system;
- overlays = [(_: prev: {
- hwdata = prev.callPackage ./nix/hwdata.nix {};
- })];
- });
+ pkgsFor = genSystems (system:
+ import nixpkgs {
+ inherit system;
+ overlays = [
+ (_: prev: {
+ hwdata = prev.callPackage ./nix/hwdata.nix {};
+ libdrm = prev.libdrm.overrideAttrs (old: rec {
+ version = "2.4.114";
+ src = prev.fetchurl {
+ url = "https://dri.freedesktop.org/${old.pname}/${old.pname}-${version}.tar.xz";
+ sha256 = "sha256-MEnPhDpH0S5e7vvDvjSW14L6CfQjRr8Lfe/j0eWY0CY=";
+ };
+ });
+ wayland-protocols = prev.wayland-protocols.overrideAttrs (old: rec {
+ version = "1.29";
+ src = prev.fetchurl {
+ url = "https://gitlab.freedesktop.org/wayland/${old.pname}/-/releases/${version}/downloads/${old.pname}-${version}.tar.xz";
+ hash = "sha256-4l6at1rHNnBN3v6S6PmshzC+q29WTbYvetaVu6T/ntg=";
+ };
+ });
+ })
+ ];
+ });
mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)