nixpkgs-suyu/pkgs/applications/office/notes-up/default.nix
worldofpeace bdb851ee2d pantheon: use latest vala
elementary OS's ecosystem is curated around Ubuntu's LTS releases.
This means the development platform for their curated applications
always includes a LTS version of vala (in 18.04 it's 0.40).
Because of how vala development works it suspect some of these
applications to have serious issues if complied with the latest vala.
However in the past year or so, for Pantheon at least, I don't think
their applications will have much issues with latest vala, and if there
is I don't think they'd be difficult to fix. In this single regard they've
become more responsive since their preferred language is vala.

As for the curated applications I have less of this confidence in.
So I'd have to be accept less applications, but that's something
I'm willing to compromise on. And this is easily reversible or
could be done on a per-application basis. And nix already makes
this trivial.
2019-10-09 22:47:37 -04:00

61 lines
1.2 KiB
Nix

{ stdenv
, fetchFromGitHub
, pantheon
, pkgconfig
, vala
, cmake
, ninja
, gtk3
, gtksourceview3
, webkitgtk
, gtkspell3
, glib
, libgee
, sqlite
, discount
, wrapGAppsHook
, withPantheon ? false }:
stdenv.mkDerivation rec {
pname = "notes-up";
version = "2.0.2";
src = fetchFromGitHub {
owner = "Philip-Scott";
repo = "Notes-up";
rev = version;
sha256 = "0bklgp8qrrj9y5m77xqbpy1ld2d9ya3rlxklgzx3alffq5312i4s";
};
nativeBuildInputs = [
cmake
ninja
vala
pkgconfig
wrapGAppsHook
];
buildInputs = [
discount
glib
gtk3
gtksourceview3
gtkspell3
libgee
pantheon.granite
sqlite
webkitgtk
];
# Whether to build with contractor support (Pantheon specific)
cmakeFlags = if withPantheon then null else [ "-Dnoele=yes" ];
meta = with stdenv.lib; {
description = "Markdown notes editor and manager designed for elementary OS"
+ stdenv.lib.optionalString withPantheon " - built with Contractor support";
homepage = https://github.com/Philip-Scott/Notes-up;
license = licenses.gpl2;
maintainers = with maintainers; [ davidak worldofpeace ];
platforms = platforms.linux;
};
}