depot/third_party/nixpkgs/pkgs/applications/office/treesheets/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

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-05-04";
src = fetchFromGitHub {
owner = "aardappel";
repo = "treesheets";
rev = "f29512886514410fa68d2debdb9389a8f81f3aaa";
hash = "sha256-Uq8G2lSVTj1JmiLnn5FZd/WKS+wjZxoaliOyghVZg34=";
};
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;
};
}