-
I used to run valent on archlinux and it worked well. Then after I've packaged it for NixOS, it doesn't discover any devices. These are command line error:
This is how I packaged it for NixOS: {
stdenv,
lib,
fetchFromGitHub,
meson,
pkg-config,
cmake,
ninja,
wrapGAppsHook4,
glib,
glib-networking,
libadwaita,
gdk-pixbuf,
desktop-file-utils,
sqlite,
gnutls,
libportal-gtk4,
evolution-data-server,
json-glib,
libpeas,
gst_all_1,
libsysprof-capture,
libpulseaudio,
}:
stdenv.mkDerivation rec {
pname = "valent";
version = "393";
src = fetchFromGitHub {
owner = "andyholmes";
repo = "${pname}";
rev = "401fda881bc17d2424a621d41c9345f5e9e4f689";
hash = "sha256-8TGl+U0tdR6jCTURATY86SxnjU6UiZUyMLrrmKPyvKw=";
fetchSubmodules = true;
};
nativeBuildInputs = [
meson
pkg-config
cmake
ninja
wrapGAppsHook4
glib
gdk-pixbuf
desktop-file-utils
];
buildInputs = [
glib
glib-networking
libadwaita
sqlite
gnutls
libportal-gtk4
evolution-data-server
json-glib
libpeas
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-ugly
gst_all_1.gstreamer
libsysprof-capture
libpulseaudio
];
meta = with lib; {
description = " Connect, control and sync devices. ";
homepage = "https://github.com/andyholmes/${pname}";
license = licenses.gpl3Only;
platforms = [ "x86_64-linux" ];
};
} Any kind of help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for packaging Valent for NixOS, I know that's a tough one sometimes 🙂
These all look okay, actually. Some of these I just see all the time, while the others Valent is fine dealing with (missing portals, etc). My best guess is that this is a firewall/networking issue and Valent. I recalled there is an option for the GSConnect package in Nix that uses |
Beta Was this translation helpful? Give feedback.
-
Yes, you are probably right! I've just noticed that networking.firewall = rec {
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
allowedUDPPortRanges = allowedTCPPortRanges;
}; And this is what |
Beta Was this translation helpful? Give feedback.
Yes, you are probably right! I've just noticed that
network.firewall.enable
is true by default, so we need actually