Files
nixpkgs/pkgs/by-name/gn/gnome-notes/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

90 lines
1.6 KiB
Nix

{
stdenv,
lib,
meson,
ninja,
gettext,
fetchurl,
pkg-config,
wrapGAppsHook3,
itstool,
desktop-file-utils,
python3,
glib,
gtk3,
evolution-data-server,
gnome-online-accounts,
json-glib,
libuuid,
curl,
libhandy,
webkitgtk_4_1,
gnome,
adwaita-icon-theme,
libxml2,
gsettings-desktop-schemas,
tinysparql,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-notes";
version = "40.2";
src = fetchurl {
url = "mirror://gnome/sources/bijiben/${lib.versions.major finalAttrs.version}/bijiben-${finalAttrs.version}.tar.xz";
hash = "sha256-siERvAaVa+81mqzx1u3h5So1sADIgROTZjL4rGztzmc=";
};
doCheck = true;
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
itstool
libxml2
desktop-file-utils
python3
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
json-glib
libuuid
curl
libhandy
webkitgtk_4_1
tinysparql
gnome-online-accounts
gsettings-desktop-schemas
evolution-data-server
adwaita-icon-theme
];
mesonFlags = [ "-Dupdate_mimedb=false" ];
passthru = {
updateScript = gnome.updateScript {
packageName = "bijiben";
attrPath = "gnome-notes";
};
};
meta = {
description = "Note editor designed to remain simple to use";
mainProgram = "bijiben";
homepage = "https://gitlab.gnome.org/GNOME/gnome-notes";
license = lib.licenses.gpl3;
teams = [ lib.teams.gnome ];
platforms = lib.platforms.linux;
};
})