2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
2022-03-30 09:31:56 +00:00
|
|
|
, fetchpatch
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
, python3
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, evolution-data-server
|
|
|
|
, gnome-online-accounts
|
2021-05-20 23:08:51 +00:00
|
|
|
, json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libuuid
|
2021-05-20 23:08:51 +00:00
|
|
|
, curl
|
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, webkitgtk
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxml2
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, tracker
|
|
|
|
}:
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-notes";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "40.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/bijiben/${lib.versions.major version}/bijiben-${version}.tar.xz";
|
|
|
|
sha256 = "1gvvb2klkzbmyzwkjgmscdiqcl8lyz9b0rxb4igjz079csq6z805";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 0.61
|
|
|
|
# data/appdata/meson.build:3:5: ERROR: Function does not take positional arguments.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-notes/-/commit/994af76ce5144062d55d141129bf6bf5fab002ee.patch";
|
|
|
|
sha256 = "sha256-z7dPOLZzaqvdqUIDy6+V3dKossRbG0EDjBu2oJCF6b4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
desktop-file-utils
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
libuuid
|
2021-05-20 23:08:51 +00:00
|
|
|
curl
|
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
webkitgtk
|
|
|
|
tracker
|
|
|
|
gnome-online-accounts
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
evolution-data-server
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dupdate_mimedb=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "bijiben";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.gnome-notes";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Note editor designed to remain simple to use";
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Notes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|