Merge pull request #139136 from r-ryantm/auto-update/notes-up

notes-up: unstable-2020-12-29 -> 2.0.6
This commit is contained in:
Bobby Rong 2021-12-18 14:04:08 +08:00 committed by GitHub
commit 2d555e5f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 28 deletions

View File

@ -2,40 +2,42 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, nix-update-script , nix-update-script
, pantheon , desktop-file-utils
, pkg-config , meson
, vala
, cmake
, ninja , ninja
, gtk3 , pkg-config
, gtksourceview3 , python3
, webkitgtk , vala
, gtkspell3
, glib
, libgee
, pcre
, sqlite
, discount
, wrapGAppsHook , wrapGAppsHook
, withPantheon ? false , discount
, glib
, gtk3
, gtksourceview4
, gtkspell3
, libgee
, pantheon
, sqlite
, webkitgtk
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "notes-up"; pname = "notes-up";
version = "unstable-2020-12-29"; version = "2.0.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Philip-Scott"; owner = "Philip-Scott";
repo = "Notes-up"; repo = "Notes-up";
rev = "2ea9f35f588769758f5d2d4436d71c4059141a6f"; rev = version;
sha256 = "sha256-lKOM9+s34xYB9bF9pgip9DFu+6AaxSE4HjFVhoWtttk="; sha256 = "sha256-t9BCtdWd2JLrKTcmri1Lgl5RLBYD2xWCtMxoVXz0XPk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake desktop-file-utils
meson
ninja ninja
vala
pkg-config pkg-config
python3
vala
wrapGAppsHook wrapGAppsHook
]; ];
@ -43,17 +45,18 @@ stdenv.mkDerivation rec {
discount discount
glib glib
gtk3 gtk3
gtksourceview3 gtksourceview4
gtkspell3 gtkspell3
libgee libgee
pantheon.granite pantheon.granite
pcre
sqlite sqlite
webkitgtk webkitgtk
]; ];
# Whether to build with contractor support (Pantheon specific) postPatch = ''
cmakeFlags = lib.optional (!withPantheon) "-Dnoele=yes"; chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = { passthru = {
updateScript = nix-update-script { updateScript = nix-update-script {
@ -62,12 +65,11 @@ stdenv.mkDerivation rec {
}; };
meta = with lib; { meta = with lib; {
description = "Markdown notes editor and manager designed for elementary OS" 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"; homepage = "https://github.com/Philip-Scott/Notes-up";
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = with maintainers; [ ] ++ teams.pantheon.members; maintainers = with maintainers; [ ] ++ teams.pantheon.members;
platforms = platforms.linux; platforms = platforms.linux;
mainProgram = "com.github.philip-scott.notes-up"; mainProgram = "com.github.philip_scott.notes-up";
}; };
} }

View File

@ -47,8 +47,6 @@ lib.makeScope pkgs.newScope (self: with self; {
elementary-gsettings-schemas = callPackage ./desktop/elementary-gsettings-schemas { }; elementary-gsettings-schemas = callPackage ./desktop/elementary-gsettings-schemas { };
notes-up = pkgs.notes-up.override { withPantheon = true; };
touchegg = pkgs.touchegg.override { withPantheon = true; }; touchegg = pkgs.touchegg.override { withPantheon = true; };
#### APPS #### APPS
@ -246,4 +244,6 @@ lib.makeScope pkgs.newScope (self: with self; {
extra-elementary-contracts = throw "extra-elementary-contracts has been removed as all contracts have been upstreamed."; # added 2021-12-01 extra-elementary-contracts = throw "extra-elementary-contracts has been removed as all contracts have been upstreamed."; # added 2021-12-01
inherit (pkgs) notes-up; # added 2021-12-18
}) })