nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 meson,
5 ninja,
6 gettext,
7 fetchurl,
8 pkg-config,
9 wrapGAppsHook3,
10 itstool,
11 desktop-file-utils,
12 python3,
13 glib,
14 gtk3,
15 evolution-data-server,
16 gnome-online-accounts,
17 json-glib,
18 libuuid,
19 curl,
20 libhandy,
21 webkitgtk_4_1,
22 gnome,
23 adwaita-icon-theme,
24 libxml2,
25 gsettings-desktop-schemas,
26 tinysparql,
27}:
28
29stdenv.mkDerivation (finalAttrs: {
30 pname = "gnome-notes";
31 version = "40.2";
32
33 src = fetchurl {
34 url = "mirror://gnome/sources/bijiben/${lib.versions.major finalAttrs.version}/bijiben-${finalAttrs.version}.tar.xz";
35 hash = "sha256-siERvAaVa+81mqzx1u3h5So1sADIgROTZjL4rGztzmc=";
36 };
37
38 doCheck = true;
39
40 postPatch = ''
41 chmod +x build-aux/meson_post_install.py
42 patchShebangs build-aux/meson_post_install.py
43 '';
44
45 nativeBuildInputs = [
46 meson
47 ninja
48 pkg-config
49 gettext
50 itstool
51 libxml2
52 desktop-file-utils
53 python3
54 wrapGAppsHook3
55 ];
56
57 buildInputs = [
58 glib
59 gtk3
60 json-glib
61 libuuid
62 curl
63 libhandy
64 webkitgtk_4_1
65 tinysparql
66 gnome-online-accounts
67 gsettings-desktop-schemas
68 evolution-data-server
69 adwaita-icon-theme
70 ];
71
72 mesonFlags = [ "-Dupdate_mimedb=false" ];
73
74 passthru = {
75 updateScript = gnome.updateScript {
76 packageName = "bijiben";
77 attrPath = "gnome-notes";
78 };
79 };
80
81 meta = {
82 description = "Note editor designed to remain simple to use";
83 mainProgram = "bijiben";
84 homepage = "https://gitlab.gnome.org/GNOME/gnome-notes";
85 license = lib.licenses.gpl3;
86 teams = [ lib.teams.gnome ];
87 platforms = lib.platforms.linux;
88 };
89})