9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, wrapGAppsHook
|
|
, makeWrapper
|
|
, wxGTK
|
|
, Cocoa
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "treesheets";
|
|
version = "unstable-2023-07-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aardappel";
|
|
repo = "treesheets";
|
|
rev = "7c0967ed28e3d5b100a668015e38993dab7e3e34";
|
|
sha256 = "969Ogxcoto2pNVr5itijeYXqytJxgUJ8rH97P6K8O1A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
wrapGAppsHook
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
wxGTK
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Cocoa
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\"";
|
|
|
|
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
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
|
|
homepage = "https://strlen.com/treesheets/";
|
|
maintainers = with maintainers; [ obadz avery ];
|
|
platforms = platforms.unix;
|
|
license = licenses.zlib;
|
|
};
|
|
}
|