aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix8
-rw-r--r--nix/overlays.nix17
2 files changed, 19 insertions, 6 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 85a3105d..df270f28 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -6,7 +6,6 @@
pkgconf,
makeWrapper,
meson,
- cmake,
ninja,
aquamarine,
binutils,
@@ -17,7 +16,6 @@
hyprlang,
hyprutils,
hyprwayland-scanner,
- jq,
libGL,
libdrm,
libexecinfo,
@@ -27,9 +25,9 @@
mesa,
pango,
pciutils,
- python3,
systemd,
tomlplusplus,
+ udis86-hyprland,
wayland,
wayland-protocols,
wayland-scanner,
@@ -96,13 +94,10 @@ in
nativeBuildInputs = [
hyprwayland-scanner
- jq
makeWrapper
meson
- cmake
ninja
pkg-config
- python3 # for udis86
];
outputs = [
@@ -129,6 +124,7 @@ in
pango
pciutils
tomlplusplus
+ udis86-hyprland
wayland
wayland-protocols
wayland-scanner
diff --git a/nix/overlays.nix b/nix/overlays.nix
index 71b5f59f..2b2788e7 100644
--- a/nix/overlays.nix
+++ b/nix/overlays.nix
@@ -26,6 +26,7 @@ in {
inputs.hyprlang.overlays.default
inputs.hyprutils.overlays.default
inputs.hyprwayland-scanner.overlays.default
+ self.overlays.udis86
# Hyprland packages themselves
(final: prev: let
@@ -64,4 +65,20 @@ in {
hyprland-extras = lib.composeManyExtensions [
inputs.xdph.overlays.xdg-desktop-portal-hyprland
];
+
+ # udis86 from nixpkgs is too old, and also does not provide a .pc file
+ # this version is the one used in the git submodule, and allows us to
+ # fetch the source without '?submodules=1'
+ udis86 = final: prev: {
+ udis86-hyprland = prev.udis86.overrideAttrs (self: super: {
+ src = final.fetchFromGitHub {
+ owner = "canihavesomecoffee";
+ repo = "udis86";
+ rev = "5336633af70f3917760a6d441ff02d93477b0c86";
+ hash = "sha256-HifdUQPGsKQKQprByeIznvRLONdOXeolOsU5nkwIv3g=";
+ };
+
+ patches = [];
+ });
+ };
}