forked from p2panda/reflection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
79 lines (72 loc) · 1.85 KB
/
Copy pathflake.nix
File metadata and controls
79 lines (72 loc) · 1.85 KB
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
{
packages.x86_64-linux.default = self.packages.x86_64-linux.reflection;
packages.x86_64-linux.reflection = nixpkgs.legacyPackages.x86_64-linux.callPackage (
{
lib,
stdenv,
cargo,
desktop-file-utils,
meson,
ninja,
pkg-config,
rustc,
wrapGAppsHook4,
rustPlatform,
gtk4,
gtksourceview5,
libadwaita,
libpanel,
vte-gtk4,
glib,
openssl,
blueprint-compiler,
libspelling,
}:
stdenv.mkDerivation rec {
pname = "reflection";
version = "0.3rc0";
src = ./.;
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-cbrZJzKIVqrA49Tjd3xR9do04CV8Euhb3UjPs3PtqhI=";
};
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
nativeBuildInputs = [
desktop-file-utils
glib
gtk4
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
cargo
rustc
wrapGAppsHook4
blueprint-compiler
libspelling
];
buildInputs = [
gtk4
gtksourceview5
libadwaita
libpanel
vte-gtk4
libspelling
];
meta = {
description = "Collaborative, local-first GTK text editor";
homepage = "https://github.com/p2panda/reflection";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "reflection";
};
}
) { };
};
}