2022-01-12 04:04:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2022-01-12 04:00:00 +00:00
|
|
|
, wrapGAppsHook
|
2022-10-08 18:25:01 +00:00
|
|
|
, makeWrapper
|
|
|
|
, wxGTK
|
|
|
|
, Cocoa
|
2022-01-12 04:04:15 +00:00
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
2017-04-01 13:34:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "treesheets";
|
2024-04-12 01:36:27 +00:00
|
|
|
version = "unstable-2024-04-11";
|
2017-04-01 13:34:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-12 04:04:15 +00:00
|
|
|
owner = "aardappel";
|
|
|
|
repo = "treesheets";
|
2024-04-12 01:36:27 +00:00
|
|
|
rev = "5e9e95a34221d4bda584d2130586177e29ee8fe7";
|
|
|
|
sha256 = "X0aB0rJZd9G8S+QWviSAdB/YQMT4lVV3yiELzZs+P3g=";
|
2017-04-01 13:34:17 +00:00
|
|
|
};
|
|
|
|
|
2022-01-12 04:04:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
2022-01-12 04:00:00 +00:00
|
|
|
wrapGAppsHook
|
2022-10-08 18:25:01 +00:00
|
|
|
makeWrapper
|
2022-01-12 04:04:15 +00:00
|
|
|
];
|
2017-04-01 13:34:17 +00:00
|
|
|
|
2022-01-12 04:04:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK
|
2022-10-08 18:25:01 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Cocoa
|
2022-01-12 04:04:15 +00:00
|
|
|
];
|
2017-04-01 13:34:17 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\"";
|
2017-04-01 13:34:17 +00:00
|
|
|
|
2022-10-08 18:25:01 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
shopt -s extglob
|
|
|
|
mkdir -p $out/{share/treesheets,bin}
|
|
|
|
mv $out/!(share) $out/share/treesheets
|
|
|
|
makeWrapper $out/{share/treesheets,bin}/treesheets \
|
|
|
|
--chdir $out/share/treesheets
|
|
|
|
'';
|
|
|
|
|
2022-01-12 04:04:15 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
2017-04-01 13:34:17 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-01 13:34:17 +00:00
|
|
|
description = "Free Form Data Organizer";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "treesheets";
|
2017-04-01 13:34:17 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The ultimate replacement for spreadsheets, mind mappers, outliners,
|
|
|
|
PIMs, text editors and small databases.
|
|
|
|
|
|
|
|
Suitable for any kind of data organization, such as Todo lists,
|
|
|
|
calendars, project management, brainstorming, organizing ideas,
|
|
|
|
planning, requirements gathering, presentation of information, etc.
|
|
|
|
'';
|
|
|
|
|
2022-01-12 04:04:15 +00:00
|
|
|
homepage = "https://strlen.com/treesheets/";
|
2024-04-07 00:47:58 +00:00
|
|
|
maintainers = with maintainers; [ obadz ];
|
2022-10-08 18:25:01 +00:00
|
|
|
platforms = platforms.unix;
|
2022-01-12 04:04:15 +00:00
|
|
|
license = licenses.zlib;
|
2017-04-01 13:34:17 +00:00
|
|
|
};
|
|
|
|
}
|