2021-05-20 23:08:51 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, gtk4
|
2021-10-17 02:12:59 +00:00
|
|
|
|
, hicolor-icon-theme
|
2021-05-20 23:08:51 +00:00
|
|
|
|
, json-glib
|
|
|
|
|
, libadwaita
|
|
|
|
|
, libgee
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, nix-update-script
|
|
|
|
|
, pkg-config
|
|
|
|
|
, python3
|
|
|
|
|
, vala
|
2021-10-17 02:12:59 +00:00
|
|
|
|
, wrapGAppsHook4
|
2021-05-20 23:08:51 +00:00
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "notejot";
|
2022-01-26 04:04:25 +00:00
|
|
|
|
version = "3.3.3"; # make sure to recheck src.rev
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "lainsce";
|
|
|
|
|
repo = pname;
|
2022-01-26 04:04:25 +00:00
|
|
|
|
# Note from Fedora spec file:
|
|
|
|
|
# https://src.fedoraproject.org/rpms/notejot/blob/bbe621cef4d5a2c27eed029063b8e8cfd7c8d400/f/notejot.spec
|
|
|
|
|
# Upstream confusingly made several bugfix post-releases of version 3.3.3,
|
|
|
|
|
# tagged as 3.4.x, but with prominent notices like "This is still 3.3.3". We
|
|
|
|
|
# respect upstream’s wishes (and the version numbers inside the source tarball)
|
|
|
|
|
# by packaging these releases as 3.3.3 with appropriate snapshot info.
|
|
|
|
|
# https://github.com/lainsce/notejot/releases/tag/3.4.9
|
|
|
|
|
#
|
|
|
|
|
# Note that sometimes upstream don't update their version in meson.build
|
|
|
|
|
# (https://github.com/lainsce/notejot/issues/236), always follow the version
|
|
|
|
|
# from Fedora Rawhide.
|
|
|
|
|
# https://github.com/lainsce/notejot/blob/3.4.9/meson.build#L1
|
|
|
|
|
rev = "3.4.9";
|
|
|
|
|
hash = "sha256-42k9CAnXAb7Ic580SIa95MDCkCWtso1F+0eD69HX8WI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
python3
|
2021-10-17 02:12:59 +00:00
|
|
|
|
vala
|
|
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
buildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
|
gtk4
|
2021-10-17 02:12:59 +00:00
|
|
|
|
hicolor-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
|
json-glib
|
2021-05-20 23:08:51 +00:00
|
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
|
libgee
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-05-20 23:08:51 +00:00
|
|
|
|
chmod +x build-aux/post_install.py
|
|
|
|
|
patchShebangs build-aux/post_install.py
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
|
attrPath = pname;
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
homepage = "https://github.com/lainsce/notejot";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
description = "Stupidly-simple sticky notes applet";
|
|
|
|
|
license = licenses.gpl3Plus;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ] ++ teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
mainProgram = "io.github.lainsce.Notejot";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
}
|