2021-05-12 14:12:27 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk4
|
2021-10-16 04:10:45 +02:00
|
|
|
, hicolor-icon-theme
|
2021-05-12 14:12:27 +02:00
|
|
|
, json-glib
|
|
|
|
, libadwaita
|
|
|
|
, libgee
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, vala
|
2021-10-16 04:10:45 +02:00
|
|
|
, wrapGAppsHook4
|
2021-05-12 14:12:27 +02:00
|
|
|
}:
|
2018-09-08 10:07:55 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "notejot";
|
2022-02-13 04:28:32 +01:00
|
|
|
version = "3.4.9";
|
2018-09-08 10:07:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lainsce";
|
|
|
|
repo = pname;
|
2022-02-13 04:28:32 +01:00
|
|
|
rev = version;
|
2022-01-01 03:00:22 +01:00
|
|
|
hash = "sha256-42k9CAnXAb7Ic580SIa95MDCkCWtso1F+0eD69HX8WI=";
|
2018-09-08 10:07:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2018-09-08 10:07:55 +02:00
|
|
|
python3
|
2021-10-16 04:10:45 +02:00
|
|
|
vala
|
|
|
|
wrapGAppsHook4
|
2018-09-08 10:07:55 +02:00
|
|
|
];
|
2021-10-16 04:10:45 +02:00
|
|
|
|
2018-09-08 10:07:55 +02:00
|
|
|
buildInputs = [
|
2021-05-12 14:12:27 +02:00
|
|
|
gtk4
|
2021-10-16 04:10:45 +02:00
|
|
|
hicolor-icon-theme
|
2018-09-08 10:07:55 +02:00
|
|
|
json-glib
|
2021-05-12 14:12:27 +02:00
|
|
|
libadwaita
|
2019-08-04 09:07:25 +02:00
|
|
|
libgee
|
2018-09-08 10:07:55 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-05-12 14:12:27 +02:00
|
|
|
chmod +x build-aux/post_install.py
|
|
|
|
patchShebangs build-aux/post_install.py
|
2018-09-08 10:07:55 +02:00
|
|
|
'';
|
|
|
|
|
2021-10-16 04:10:45 +02:00
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/lainsce/notejot";
|
2022-02-13 04:28:32 +01:00
|
|
|
description = "Stupidly-simple notes app";
|
2021-05-12 14:12:27 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-13 04:28:32 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2018-10-31 22:58:23 +01:00
|
|
|
platforms = platforms.linux;
|
2021-11-03 11:27:38 +01:00
|
|
|
mainProgram = "io.github.lainsce.Notejot";
|
2018-09-08 10:07:55 +02:00
|
|
|
};
|
|
|
|
}
|