2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-12-19 01:06:50 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-12-19 01:06:50 +00:00
|
|
|
, python3
|
2021-07-03 03:11:41 +00:00
|
|
|
, vala
|
2021-12-19 01:06:50 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, discount
|
|
|
|
, glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
2021-12-19 01:06:50 +00:00
|
|
|
, gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtkspell3
|
|
|
|
, libgee
|
2021-12-19 01:06:50 +00:00
|
|
|
, pantheon
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
2021-12-19 01:06:50 +00:00
|
|
|
, webkitgtk
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "notes-up";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "2.0.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Philip-Scott";
|
|
|
|
repo = "Notes-up";
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-t9BCtdWd2JLrKTcmri1Lgl5RLBYD2xWCtMxoVXz0XPk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
desktop-file-utils
|
|
|
|
meson
|
2020-04-24 23:36:52 +00:00
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-12-19 01:06:50 +00:00
|
|
|
python3
|
|
|
|
vala
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
discount
|
|
|
|
glib
|
|
|
|
gtk3
|
2021-12-19 01:06:50 +00:00
|
|
|
gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
gtkspell3
|
|
|
|
libgee
|
|
|
|
pantheon.granite
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Markdown notes editor and manager designed for elementary OS";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Philip-Scott/Notes-up";
|
2021-07-03 03:11:41 +00:00
|
|
|
license = licenses.gpl2Only;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-12-19 01:06:50 +00:00
|
|
|
mainProgram = "com.github.philip_scott.notes-up";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|