2024-11-01 09:01:05 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
desktop-file-utils,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
vala,
|
|
|
|
evolution-data-server-gtk4,
|
|
|
|
gdk-pixbuf,
|
|
|
|
glib,
|
|
|
|
glib-networking,
|
|
|
|
gnutls,
|
|
|
|
gst_all_1,
|
|
|
|
json-glib,
|
|
|
|
libadwaita,
|
|
|
|
libpeas2,
|
|
|
|
libphonenumber,
|
|
|
|
libportal-gtk4,
|
|
|
|
pipewire,
|
|
|
|
pulseaudio,
|
|
|
|
tinysparql,
|
2023-02-26 01:32:21 -07:00
|
|
|
}:
|
|
|
|
|
2024-07-04 22:14:27 -06:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-02-26 01:32:21 -07:00
|
|
|
pname = "valent";
|
2024-11-01 09:15:19 -06:00
|
|
|
version = "1.0.0.alpha.46-unstable-2024-10-26";
|
2023-02-26 01:32:21 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andyholmes";
|
|
|
|
repo = "valent";
|
2024-11-01 09:15:19 -06:00
|
|
|
rev = "165a2791d4bf3e7dee69e3dd7885dbe4948265b9";
|
|
|
|
hash = "sha256-7klvOvwyAg+Xno6zWo8UByjaS9OkOuCceuZcAIEgdyU=";
|
2023-02-26 01:32:21 -07:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-04-03 19:49:49 -06:00
|
|
|
wrapGAppsHook4
|
2024-10-11 04:27:45 -06:00
|
|
|
vala
|
2023-02-26 01:32:21 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
evolution-data-server-gtk4
|
2024-10-11 04:27:45 -06:00
|
|
|
gdk-pixbuf
|
2023-02-26 01:32:21 -07:00
|
|
|
glib
|
2023-04-03 19:49:49 -06:00
|
|
|
glib-networking
|
2023-02-26 01:32:21 -07:00
|
|
|
gnutls
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
json-glib
|
|
|
|
libadwaita
|
2023-11-24 08:31:14 -07:00
|
|
|
libpeas2
|
2024-10-11 04:27:45 -06:00
|
|
|
libphonenumber
|
2023-02-26 01:32:21 -07:00
|
|
|
libportal-gtk4
|
2024-07-04 22:14:27 -06:00
|
|
|
pipewire
|
2023-02-26 01:32:21 -07:00
|
|
|
pulseaudio
|
2024-10-11 04:27:45 -06:00
|
|
|
tinysparql
|
2023-02-26 01:32:21 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2024-11-01 09:15:19 -06:00
|
|
|
(lib.mesonBool "plugin_bluez" true)
|
2023-02-26 01:32:21 -07:00
|
|
|
];
|
|
|
|
|
2024-03-18 18:51:28 -06:00
|
|
|
meta = {
|
2023-02-26 01:32:21 -07:00
|
|
|
description = "Implementation of the KDE Connect protocol, built on GNOME platform libraries";
|
2024-03-18 20:14:51 -06:00
|
|
|
mainProgram = "valent";
|
2024-02-20 00:56:33 -07:00
|
|
|
longDescription = ''
|
|
|
|
Note that you have to open firewall ports for other devices
|
|
|
|
to connect to it. Use either:
|
|
|
|
```nix
|
|
|
|
programs.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.valent;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
or open corresponding firewall ports directly:
|
|
|
|
```nix
|
|
|
|
networking.firewall = rec {
|
|
|
|
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
|
|
|
|
allowedUDPPortRanges = allowedTCPPortRanges;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
'';
|
|
|
|
homepage = "https://valent.andyholmes.ca";
|
2024-07-04 22:14:27 -06:00
|
|
|
changelog = "https://github.com/andyholmes/valent/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
2024-11-01 09:01:05 -06:00
|
|
|
license = with lib.licenses; [
|
|
|
|
gpl3Plus
|
|
|
|
cc0
|
|
|
|
cc-by-sa-30
|
|
|
|
];
|
2024-04-26 14:20:31 -06:00
|
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
2024-03-18 18:51:28 -06:00
|
|
|
platforms = lib.platforms.linux;
|
2023-02-26 01:32:21 -07:00
|
|
|
};
|
2024-07-04 22:14:27 -06:00
|
|
|
})
|