emaryn 2025-04-19 00:12:49 +08:00
parent dba7688e8e
commit 1560e87d76

View file

@ -1,13 +1,13 @@
{ {
stdenv,
lib, lib,
stdenv,
fetchFromGitHub, fetchFromGitHub,
cmake, cmake,
pkg-config, pkg-config,
python3, python3,
wrapGAppsHook3, wrapGAppsHook3,
gtkmm3, gtkmm3,
gtksourceview, gtksourceview4,
gtksourceviewmm, gtksourceviewmm,
gspell, gspell,
libxmlxx, libxmlxx,
@ -19,15 +19,15 @@
vte, vte,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "cherrytree"; pname = "cherrytree";
version = "1.1.4"; version = "1.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "giuspen"; owner = "giuspen";
repo = "cherrytree"; repo = "cherrytree";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-JiSGoEVGotaPqEKFHjTagi+sZPgdX+tKI0FIHRmJKHE="; hash = "sha256-X87L3oSidnXH/IIHtVbeIn0ehWkSgrAkX0+TUGQomV0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gtkmm3 gtkmm3
gtksourceview gtksourceview4
gtksourceviewmm gtksourceviewmm
gspell gspell
libxmlxx libxmlxx
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
vte vte
]; ];
meta = with lib; { meta = {
description = "Hierarchical note taking application"; description = "Hierarchical note taking application";
mainProgram = "cherrytree"; mainProgram = "cherrytree";
longDescription = '' longDescription = ''
@ -64,9 +64,9 @@ stdenv.mkDerivation rec {
a Cherrytree document where you can easily find it. a Cherrytree document where you can easily find it.
''; '';
homepage = "https://www.giuspen.com/cherrytree"; homepage = "https://www.giuspen.com/cherrytree";
changelog = "https://raw.githubusercontent.com/giuspen/cherrytree/${version}/changelog.txt"; changelog = "https://raw.githubusercontent.com/giuspen/cherrytree/${finalAttrs.version}/changelog.txt";
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = [ ]; maintainers = [ ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })