1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
{
lib,
stdenv,
fetchFromGitHub,
wrapGAppsHook4,
rustPlatform,
pkg-config,
meson,
ninja,
cargo,
rustc,
cairo,
gdk-pixbuf,
gtk4,
gtksourceview5,
libadwaita,
pango,
sqlite,
glib,
openssl,
libspelling,
blueprint-compiler,
desktop-file-utils,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "reflection";
version = "0.4";
src = fetchFromGitHub {
owner = "p2panda";
repo = "reflection";
tag = finalAttrs.version;
hash = "sha256-VPfYbMAyKv+2lWJ/TcQ7Em6kbutnJQIgbBTEqOnEDcc=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-3RR/YfJsq0eaRhaVVnocV5R1fbQ6YKsQ3QVZ1dc5HsI=";
};
env = {
LIBSQLITE3_SYS_USE_PKG_CONFIG = true;
};
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
blueprint-compiler
cargo
desktop-file-utils
glib
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
buildInputs = [
cairo
gdk-pixbuf
glib
gtk4
gtksourceview5
libadwaita
libspelling
openssl
pango
sqlite
];
meta = {
description = "Collaborative, local-first GTK text editor";
homepage = "https://github.com/p2panda/reflection";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "reflection";
maintainers = with lib.maintainers; [ hougo ];
teams = with lib.teams; [ ngi ];
};
})
|