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