depot/third_party/nixpkgs/pkgs/desktops/gnome-3/apps/gnome-notes/default.nix
Default email 1ae14203fc Project import generated by Copybara.
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
2021-01-17 01:15:33 +01:00

86 lines
1.5 KiB
Nix

{ lib, stdenv
, meson
, ninja
, gettext
, fetchurl
, pkgconfig
, wrapGAppsHook
, itstool
, desktop-file-utils
, python3
, glib
, gtk3
, evolution-data-server
, gnome-online-accounts
, libuuid
, libhandy_0
, webkitgtk
, zeitgeist
, gnome3
, libxml2
, gsettings-desktop-schemas
, tracker
}:
stdenv.mkDerivation rec {
pname = "gnome-notes";
version = "3.38.0";
src = fetchurl {
url = "mirror://gnome/sources/bijiben/${lib.versions.majorMinor version}/bijiben-${version}.tar.xz";
sha256 = "H/bMCsbGKQe/KgmhchXt0vF7dNrKs6XIminDBJFyvis=";
};
doCheck = true;
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
nativeBuildInputs = [
meson
ninja
pkgconfig
gettext
itstool
libxml2
desktop-file-utils
python3
wrapGAppsHook
];
buildInputs = [
glib
gtk3
libuuid
libhandy_0 # doesn't support libhandy-1 yet
webkitgtk
tracker
gnome-online-accounts
zeitgeist
gsettings-desktop-schemas
evolution-data-server
gnome3.adwaita-icon-theme
];
mesonFlags = [
"-Dzeitgeist=true"
"-Dupdate_mimedb=false"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = "bijiben";
attrPath = "gnome3.gnome-notes";
};
};
meta = with lib; {
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;
};
}