mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
90 lines
1.9 KiB
Nix
90 lines
1.9 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, evolution-data-server-gtk4
|
|
, glib
|
|
, glib-networking
|
|
, gnutls
|
|
, gst_all_1
|
|
, json-glib
|
|
, libadwaita
|
|
, libpeas2
|
|
, libportal-gtk4
|
|
, pulseaudio
|
|
, sqlite
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "valent";
|
|
version = "0-unstable-2024-02-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andyholmes";
|
|
repo = "valent";
|
|
rev = "70ef1aa42eb2df5e9c3aa4faa014c8d539450018";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-JdrkAtn21NoX+SI6PNWMdE8HLKhLc3HKFhwKydENkvg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
evolution-data-server-gtk4
|
|
glib
|
|
glib-networking
|
|
gnutls
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
json-glib
|
|
libadwaita
|
|
libpeas2
|
|
libportal-gtk4
|
|
pulseaudio
|
|
sqlite
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dplugin_bluez=true"
|
|
# FIXME: libpeas2 (and libpeas) not compiled with -Dvapi=true
|
|
"-Dvapi=false"
|
|
];
|
|
|
|
meta = {
|
|
description = "Implementation of the KDE Connect protocol, built on GNOME platform libraries";
|
|
mainProgram = "valent";
|
|
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";
|
|
changelog = "https://github.com/andyholmes/valent/blob/${src.rev}/CHANGELOG.md";
|
|
license = with lib.licenses; [ gpl3Plus cc0 cc-by-sa-30 ];
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|