2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ stdenv ,
3
+ lib ,
4
+ fetchFromGitHub ,
5
+ meson ,
6
+ pkg-config ,
7
+ ninja ,
8
+ glib ,
9
+ gtk3 ,
10
+ cjs ,
11
+ gtksourceview4 ,
12
+ gobject-introspection ,
13
+ libmusicbrainz5 ,
14
+ webkitgtk_4_1 ,
15
+ clutter-gtk ,
16
+ clutter-gst ,
17
+ wrapGAppsHook3 ,
18
+ nemo ,
19
+ xreader ,
20
+ } :
21
+
22
+ stdenv . mkDerivation ( finalAttrs : {
23
+ pname = "nemo-preview" ;
24
+ version = "6.4.0" ;
25
+
26
+ src = fetchFromGitHub {
27
+ owner = "linuxmint" ;
28
+ repo = "nemo-extensions" ;
29
+ tag = finalAttrs . version ;
30
+ hash = "sha256-39hWA4SNuEeaPA6D5mWMHjJDs4hYK7/ZdPkTyskvm5Y=" ;
31
+ } ;
32
+
33
+ sourceRoot = "${ finalAttrs . src . name } /nemo-preview" ;
34
+
35
+ nativeBuildInputs = [
36
+ wrapGAppsHook3
37
+ gobject-introspection
38
+ meson
39
+ pkg-config
40
+ glib
41
+ ninja
42
+ xreader
43
+ ] ;
44
+
45
+ buildInputs = [
46
+ gtk3
47
+ cjs
48
+ gtksourceview4
49
+ libmusicbrainz5
50
+ webkitgtk_4_1
51
+ clutter-gtk
52
+ clutter-gst
53
+ nemo
54
+ ] ;
55
+
56
+ env = {
57
+ PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${ placeholder "out" } /${ nemo . extensiondir } " ;
58
+ PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${ placeholder "out" } /share/gir-1.0" ;
59
+ PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${ placeholder "out" } /lib/girepository-1.0" ;
60
+ } ;
61
+
62
+ meta = {
63
+ homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-preview" ;
64
+ description = "Quick previewer for Nemo, the Cinnamon desktop file manager" ;
65
+ license = lib . licenses . gpl2Plus ;
66
+ platforms = lib . platforms . linux ;
67
+ maintainers = lib . teams . cinnamon . members ;
68
+ } ;
69
+ } )
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ stdenv.mkDerivation rec {
57
57
58
58
mesonFlags = [
59
59
"-Dmathjax-directory=${ nodePackages . mathjax } "
60
+ "-Dintrospection=true"
60
61
] ++ ( map ( x : "-D${ x } =true" ) backends ) ;
61
62
62
63
buildInputs = [
0 commit comments