2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-04-12 12:48:02 +00:00
|
|
|
, wrapGAppsHook4
|
2023-03-15 16:39:30 +00:00
|
|
|
, evolution-data-server-gtk4
|
|
|
|
, glib
|
2023-04-12 12:48:02 +00:00
|
|
|
, glib-networking
|
2023-03-15 16:39:30 +00:00
|
|
|
, gnutls
|
|
|
|
, gst_all_1
|
|
|
|
, json-glib
|
|
|
|
, libadwaita
|
2024-01-02 11:29:13 +00:00
|
|
|
, libpeas2
|
2023-03-15 16:39:30 +00:00
|
|
|
, libportal-gtk4
|
|
|
|
, pulseaudio
|
|
|
|
, sqlite
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "valent";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0-unstable-2024-02-12";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andyholmes";
|
|
|
|
repo = "valent";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "70ef1aa42eb2df5e9c3aa4faa014c8d539450018";
|
2023-03-15 16:39:30 +00:00
|
|
|
fetchSubmodules = true;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-JdrkAtn21NoX+SI6PNWMdE8HLKhLc3HKFhwKydENkvg=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-04-12 12:48:02 +00:00
|
|
|
wrapGAppsHook4
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
evolution-data-server-gtk4
|
|
|
|
glib
|
2023-04-12 12:48:02 +00:00
|
|
|
glib-networking
|
2023-03-15 16:39:30 +00:00
|
|
|
gnutls
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
json-glib
|
|
|
|
libadwaita
|
2024-01-02 11:29:13 +00:00
|
|
|
libpeas2
|
2023-03-15 16:39:30 +00:00
|
|
|
libportal-gtk4
|
|
|
|
pulseaudio
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dplugin_bluez=true"
|
2024-01-02 11:29:13 +00:00
|
|
|
# FIXME: libpeas2 (and libpeas) not compiled with -Dvapi=true
|
|
|
|
"-Dvapi=false"
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of the KDE Connect protocol, built on GNOME platform libraries";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "valent";
|
2024-02-29 20:09:43 +00: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";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/andyholmes/valent/blob/${src.rev}/CHANGELOG.md";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus cc0 cc-by-sa-30 ];
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|