depot/third_party/nixpkgs/pkgs/applications/office/treesheets/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

71 lines
1.6 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
, wrapGAppsHook3
, makeWrapper
, wxGTK
, Cocoa
, unstableGitUpdater
}:
stdenv.mkDerivation rec {
pname = "treesheets";
version = "0-unstable-2024-06-09";
src = fetchFromGitHub {
owner = "aardappel";
repo = "treesheets";
rev = "c753ce40686c3044eb7fb653bb913d1610096cd1";
hash = "sha256-WpbG2RY7z71GBSDjv/VjcFsGcb/YK7P4oMVEydsYpuw=";
};
nativeBuildInputs = [
cmake
ninja
wrapGAppsHook3
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 {
hardcodeZeroVersion = true;
};
};
meta = with lib; {
description = "Free Form Data Organizer";
mainProgram = "treesheets";
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 ];
platforms = platforms.unix;
license = licenses.zlib;
};
}