2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook
|
2022-10-21 18:38:19 +00:00
|
|
|
, makeWrapper
|
|
|
|
, wxGTK
|
|
|
|
, Cocoa
|
2022-03-30 09:31:56 +00:00
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "treesheets";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2023-05-18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-30 09:31:56 +00:00
|
|
|
owner = "aardappel";
|
|
|
|
repo = "treesheets";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "750530c925da889834a69689e067dda1a8d8cdeb";
|
|
|
|
sha256 = "4yN/ZS0f7En/LJzf2lJBqAB60Oy5+5UX+ROlUWAARKs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
wrapGAppsHook
|
2022-10-21 18:38:19 +00:00
|
|
|
makeWrapper
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK
|
2022-10-21 18:38:19 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Cocoa
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\"";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +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-03-30 09:31:56 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Free Form Data Organizer";
|
|
|
|
|
|
|
|
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-03-30 09:31:56 +00:00
|
|
|
homepage = "https://strlen.com/treesheets/";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ obadz avery ];
|
2022-10-21 18:38:19 +00:00
|
|
|
platforms = platforms.unix;
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.zlib;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|