-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
65 lines (52 loc) · 1.27 KB
/
shell.nix
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
with (import <nixpkgs> {
config.allowUnfree = true;
});
let
# Enable vala graphviz feature
valaGviz = vala.override { withGraphviz = true; };
in
mkShell {
buildInputs = [
# Build requirements
meson
ninja # meson requirement
cmake
pkg-config
# vala
valaGviz
# project requirements
glib
gobject-introspection
graphviz
gtk4
stdenv.cc.cc.lib
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
]}
'';
# Setup meson
# -----------
# meson setup --prefix ~/.meson-cellini-build localdir
# Compile everything or single targets
# ------------------------------------
# meson compile -C localdir
#
# meson compile -C localdir cellini-cli
# meson compile -C localdir cellini-typelib
# meson compile -C localdir cellini-map
# meson compile -C localdir cellini-resource
# Install and export variables to find required libs
# --------------------------------------------------
# meson install -C localdir/
# export PATH=$PATH:$HOME/.meson-cellini-build/bin
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.meson-cellini-build/lib/
# export GI_TYPELIB_PATH=$GI_TYPELIB_PATH:$HOME/.meson-cellini-build/lib/girepository-1.0
# Enjoy
# -----
# cellini-cli
# cellini-resource
# cellini-annotator
# cellini-map
}