valent: use overlay to fix build

This commit is contained in:
Veneficium 2024-11-04 21:09:08 +01:00
parent f5b89fcda1
commit 5e132e435d
2 changed files with 27 additions and 0 deletions

View file

@ -35,6 +35,7 @@
overlays = [ overlays = [
nix-vscode-extensions.overlays.default nix-vscode-extensions.overlays.default
niri.overlays.niri niri.overlays.niri
(import ./overlays/valent.nix)
]; ];
config = { config = {
allowUnfree = true; allowUnfree = true;

26
overlays/valent.nix Normal file
View file

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