tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
notejot: 3.1.5 -> 3.2.0
Bobby Rong
4 years ago
8e38ff69
cb10e4dd
+38
-14
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
notejot
default.nix
use-gtk4-update-icon-cache.patch
+18
-14
pkgs/applications/misc/notejot/default.nix
···
2
2
, stdenv
3
3
, fetchFromGitHub
4
4
, gtk4
5
5
-
, gtksourceview
5
5
+
, hicolor-icon-theme
6
6
, json-glib
7
7
, libadwaita
8
8
, libgee
9
9
, meson
10
10
, ninja
11
11
, nix-update-script
12
12
-
, pantheon
13
12
, pkg-config
14
13
, python3
15
14
, vala
16
16
-
, wrapGAppsHook
15
15
+
, wrapGAppsHook4
17
16
}:
18
17
19
18
stdenv.mkDerivation rec {
20
19
pname = "notejot";
21
21
-
version = "3.1.5";
20
20
+
version = "3.2.0";
22
21
23
22
src = fetchFromGitHub {
24
23
owner = "lainsce";
25
24
repo = pname;
26
25
rev = version;
27
27
-
hash = "sha256-wsHQvN+sqAMs1QldiRoc9JlF4d54JFqNkqC+lyuHC7M=";
26
26
+
hash = "sha256-WyW1tGhO3+OykNa8BRavi93cBMOSBJw0M+0bwQHJOjU=";
28
27
};
29
28
29
29
+
patches = [
30
30
+
# build: use gtk4-update-icon-cache
31
31
+
# https://github.com/lainsce/notejot/pull/307
32
32
+
./use-gtk4-update-icon-cache.patch
33
33
+
];
34
34
+
30
35
nativeBuildInputs = [
31
36
meson
32
37
ninja
33
33
-
vala
34
38
pkg-config
35
39
python3
36
36
-
wrapGAppsHook
40
40
+
vala
41
41
+
wrapGAppsHook4
37
42
];
43
43
+
38
44
buildInputs = [
39
45
gtk4
40
40
-
gtksourceview
46
46
+
hicolor-icon-theme
41
47
json-glib
42
48
libadwaita
43
49
libgee
44
44
-
pantheon.elementary-icon-theme
45
45
-
pantheon.granite
46
50
];
47
51
48
52
postPatch = ''
···
50
54
patchShebangs build-aux/post_install.py
51
55
'';
52
56
57
57
+
passthru.updateScript = nix-update-script {
58
58
+
attrPath = pname;
59
59
+
};
60
60
+
53
61
meta = with lib; {
54
62
homepage = "https://github.com/lainsce/notejot";
55
63
description = "Stupidly-simple sticky notes applet";
56
64
license = licenses.gpl3Plus;
57
65
maintainers = with maintainers; [ AndersonTorres ] ++ teams.pantheon.members;
58
66
platforms = platforms.linux;
59
59
-
};
60
60
-
61
61
-
passthru.updateScript = nix-update-script {
62
62
-
attrPath = pname;
63
67
};
64
68
}
+20
pkgs/applications/misc/notejot/use-gtk4-update-icon-cache.patch
···
1
1
+
diff --git a/build-aux/post_install.py b/build-aux/post_install.py
2
2
+
index 1278304..fface6d 100644
3
3
+
--- a/build-aux/post_install.py
4
4
+
+++ b/build-aux/post_install.py
5
5
+
@@ -2,11 +2,13 @@
6
6
+
import os
7
7
+
import subprocess
8
8
+
9
9
+
-schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
10
10
+
+install_prefix = os.environ['MESON_INSTALL_PREFIX']
11
11
+
+icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
12
12
+
+schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
13
13
+
14
14
+
if not os.environ.get('DESTDIR'):
15
15
+
print('Compiling gsettings schemas…')
16
16
+
subprocess.call(['glib-compile-schemas', schemadir], shell=False)
17
17
+
18
18
+
print('Rebuilding desktop icons cache...')
19
19
+
- subprocess.call(['gtk-update-icon-cache', '/usr/share/icons/hicolor/'], shell=False)
20
20
+
+ subprocess.call(['gtk4-update-icon-cache', '-qtf', icondir], shell=False)