2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk4
|
|
|
|
, json-glib
|
|
|
|
, libadwaita
|
|
|
|
, libgee
|
2022-04-27 09:35:20 +00:00
|
|
|
, desktop-file-utils
|
2021-05-20 23:08:51 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
2021-10-17 02:12:59 +00:00
|
|
|
, wrapGAppsHook4
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchpatch
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "notejot";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lainsce";
|
|
|
|
repo = pname;
|
2022-02-20 05:27:41 +00:00
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-p5F0OITgfZyvHwndI5r5BE524+nft7A2XfR3BJZFamU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
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
|
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
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fixes the compilation error with new Vala compiler. Remove in the next version.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/musicinmybrain/notejot/commit/c6a7cfcb792de63fb51eb174f9f3d4e02f6a2ce1.patch";
|
|
|
|
hash = "sha256-dexPKIpUaAu/p0K2WQpElhPNt86CS+jD0dPL5+CTl4I=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-10-17 02:12:59 +00:00
|
|
|
|
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";
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "Stupidly-simple notes app";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
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
|
|
|
};
|
|
|
|
}
|