3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/notes-up/default.nix
2021-08-02 19:09:29 +02:00

73 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkg-config
, vala
, cmake
, ninja
, gtk3
, gtksourceview3
, webkitgtk
, gtkspell3
, glib
, libgee
, pcre
, sqlite
, discount
, wrapGAppsHook
, withPantheon ? false
}:
stdenv.mkDerivation rec {
pname = "notes-up";
version = "unstable-2020-12-29";
src = fetchFromGitHub {
owner = "Philip-Scott";
repo = "Notes-up";
rev = "2ea9f35f588769758f5d2d4436d71c4059141a6f";
sha256 = "sha256-lKOM9+s34xYB9bF9pgip9DFu+6AaxSE4HjFVhoWtttk=";
};
nativeBuildInputs = [
cmake
ninja
vala
pkg-config
wrapGAppsHook
];
buildInputs = [
discount
glib
gtk3
gtksourceview3
gtkspell3
libgee
pantheon.granite
pcre
sqlite
webkitgtk
];
# Whether to build with contractor support (Pantheon specific)
cmakeFlags = lib.optional (!withPantheon) "-Dnoele=yes";
passthru = {
updateScript = nix-update-script {
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;
maintainers = with maintainers; [ ] ++ teams.pantheon.members;
platforms = platforms.linux;
};
}