nixpkgs/pkgs/applications/office/notes-up/default.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkg-config
, vala
, cmake
, ninja
, gtk3
, gtksourceview3
, webkitgtk
, gtkspell3
, glib
, libgee
, pcre
, sqlite
, discount
, wrapGAppsHook
, withPantheon ? false
}:
2019-02-05 20:34:54 +00:00
stdenv.mkDerivation rec {
pname = "notes-up";
version = "unstable-2020-12-29";
2019-02-05 20:34:54 +00:00
src = fetchFromGitHub {
owner = "Philip-Scott";
repo = "Notes-up";
rev = "2ea9f35f588769758f5d2d4436d71c4059141a6f";
sha256 = "sha256-lKOM9+s34xYB9bF9pgip9DFu+6AaxSE4HjFVhoWtttk=";
2019-02-05 20:34:54 +00:00
};
nativeBuildInputs = [
cmake
ninja
vala
pkg-config
2019-02-05 20:34:54 +00:00
wrapGAppsHook
];
buildInputs = [
discount
glib
gtk3
gtksourceview3
gtkspell3
libgee
pantheon.granite
pcre
2019-02-05 20:34:54 +00:00
sqlite
webkitgtk
];
# Whether to build with contractor support (Pantheon specific)
2021-01-15 05:42:41 +00:00
cmakeFlags = lib.optional (!withPantheon) "-Dnoele=yes";
2019-12-22 23:19:30 +00:00
passthru = {
updateScript = nix-update-script {
2019-12-22 23:19:30 +00:00
attrPath = pname;
};
};
meta = with lib; {
description = "Markdown notes editor and manager designed for elementary OS"
+ lib.optionalString withPantheon " - built with Contractor support";
homepage = "https://github.com/Philip-Scott/Notes-up";
license = licenses.gpl2Only;
2021-08-02 00:46:24 +00:00
maintainers = with maintainers; [ ] ++ teams.pantheon.members;
2019-02-05 20:34:54 +00:00
platforms = platforms.linux;
};
}