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
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-07-03 03:11:41 +00:00
|
|
|
, vala
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview3
|
|
|
|
, webkitgtk
|
|
|
|
, gtkspell3
|
|
|
|
, glib
|
|
|
|
, libgee
|
2021-07-03 03:11:41 +00:00
|
|
|
, pcre
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
|
|
|
, discount
|
|
|
|
, wrapGAppsHook
|
2021-07-03 03:11:41 +00:00
|
|
|
, withPantheon ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "notes-up";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "unstable-2020-12-29";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Philip-Scott";
|
|
|
|
repo = "Notes-up";
|
2021-07-03 03:11:41 +00:00
|
|
|
rev = "2ea9f35f588769758f5d2d4436d71c4059141a6f";
|
|
|
|
sha256 = "sha256-lKOM9+s34xYB9bF9pgip9DFu+6AaxSE4HjFVhoWtttk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
2021-07-03 03:11:41 +00:00
|
|
|
vala
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
discount
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gtksourceview3
|
|
|
|
gtkspell3
|
|
|
|
libgee
|
|
|
|
pantheon.granite
|
2021-07-03 03:11:41 +00:00
|
|
|
pcre
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
# Whether to build with contractor support (Pantheon specific)
|
2021-01-15 22:18:51 +00:00
|
|
|
cmakeFlags = lib.optional (!withPantheon) "-Dnoele=yes";
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Markdown notes editor and manager designed for elementary OS"
|
2021-07-03 03:11:41 +00:00
|
|
|
+ lib.optionalString withPantheon " - built with Contractor support";
|
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;
|
|
|
|
};
|
|
|
|
}
|