anchor.diff:      gtkspell3
       libgee
       pantheon.granite
  +    pcre
       sqlite
       webkitgtk
     ];
  
positive.code: , 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
      # fails with newer vala: https://github.com/Philip-Scott/Notes-up/issues/349
      vala_0_46
      pkg-config
      wrapGAppsHook
    ];
  
negative.code: 
    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; [ davidak ];
      platforms = platforms.linux;
    };
  