lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, nix-update-script
5, desktop-file-utils
6, meson
7, ninja
8, pkg-config
9, python3
10, vala
11, wrapGAppsHook
12, discount
13, glib
14, gtk3
15, gtksourceview4
16, gtkspell3
17, libgee
18, pantheon
19, sqlite
20, webkitgtk
21}:
22
23stdenv.mkDerivation rec {
24 pname = "notes-up";
25 version = "2.0.6";
26
27 src = fetchFromGitHub {
28 owner = "Philip-Scott";
29 repo = "Notes-up";
30 rev = version;
31 sha256 = "sha256-t9BCtdWd2JLrKTcmri1Lgl5RLBYD2xWCtMxoVXz0XPk=";
32 };
33
34 nativeBuildInputs = [
35 desktop-file-utils
36 meson
37 ninja
38 pkg-config
39 python3
40 vala
41 wrapGAppsHook
42 ];
43
44 buildInputs = [
45 discount
46 glib
47 gtk3
48 gtksourceview4
49 gtkspell3
50 libgee
51 pantheon.granite
52 sqlite
53 webkitgtk
54 ];
55
56 postPatch = ''
57 chmod +x meson/post_install.py
58 patchShebangs meson/post_install.py
59 '';
60
61 passthru = {
62 updateScript = nix-update-script { };
63 };
64
65 meta = with lib; {
66 description = "Markdown notes editor and manager designed for elementary OS";
67 homepage = "https://github.com/Philip-Scott/Notes-up";
68 license = licenses.gpl2Only;
69 maintainers = with maintainers; [ ] ++ teams.pantheon.members;
70 platforms = platforms.linux;
71 mainProgram = "com.github.philip_scott.notes-up";
72 };
73}