From 5e132e435d98232aeef1d338313626b8de2865a7 Mon Sep 17 00:00:00 2001 From: Veneficium <85629831+veneficium42@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:09:08 +0100 Subject: [PATCH] valent: use overlay to fix build --- flake.nix | 1 + overlays/valent.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 overlays/valent.nix diff --git a/flake.nix b/flake.nix index d6b94db..893cfb2 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,7 @@ overlays = [ nix-vscode-extensions.overlays.default niri.overlays.niri + (import ./overlays/valent.nix) ]; config = { allowUnfree = true; diff --git a/overlays/valent.nix b/overlays/valent.nix new file mode 100644 index 0000000..1c970d1 --- /dev/null +++ b/overlays/valent.nix @@ -0,0 +1,26 @@ +final: prev: { + valent = prev.valent.overrideAttrs (old: { + nativeBuildInputs = + old.nativeBuildInputs + ++ (with prev.pkgs; [ + vala + ]); + buildInputs = + old.buildInputs + ++ (with prev.pkgs; [ + libportal + libportal-gtk4 + tracker + gdk-pixbuf + libphonenumber + ]); + version = "v1.0.0.alpha.46"; + src = prev.fetchFromGitHub { + owner = "andyholmes"; + repo = "valent"; + rev = "165a2791d4bf3e7dee69e3dd7885dbe4948265b9"; + hash = "sha256-7klvOvwyAg+Xno6zWo8UByjaS9OkOuCceuZcAIEgdyU="; + fetchSubmodules = true; + }; + }); +}