generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
67 lines (59 loc) · 1.13 KB
/
default.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
66
{
fetchFromGitHub,
glib,
gperf,
gtk3,
gtk-mac-integration,
judy,
lib,
pkg-config,
stdenv,
meson,
ninja,
flex,
gobject-introspection,
desktop-file-utils,
shared-mime-info,
}:
stdenv.mkDerivation {
pname = "gtkwave";
version = "latest";
src = fetchFromGitHub {
owner = "gtkwave";
repo = "gtkwave";
rev = "27f3a94aede651f232314d0fe0c86cc35308fa85";
sha256 = "sha256-RxEI1dTMrrFccxuYkb9GQzuFrzTiWOnnfEBR7V918c8=";
};
buildInputs =
[
flex
ninja
pkg-config
gtk3
glib
gperf
gobject-introspection
desktop-file-utils
shared-mime-info
]
++ lib.optional stdenv.isDarwin gtk-mac-integration;
configurePhase = ''
meson setup build --prefix=$out
'';
nativeBuildInputs = [
meson
ninja
];
buildPhase = ''
meson compile -C build
'';
installPhase = ''
meson install -C build
'';
meta = {
description = "VCD/Waveform viewer for Unix and Win32";
homepage = "https://gtkwave.github.io/gtkwave";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}