ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
69 lines
1.6 KiB
Nix
69 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, wrapGAppsHook
|
|
, makeWrapper
|
|
, wxGTK
|
|
, Cocoa
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "treesheets";
|
|
version = "unstable-2024-03-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aardappel";
|
|
repo = "treesheets";
|
|
rev = "4910f91cc067b1022d773a40d5762b0ebd47d0f3";
|
|
sha256 = "We3+Y2V2izsgem0fJ0/2pPj5tyjXhOEuubP7lIhnEQ0=";
|
|
};
|
|
|
|
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";
|
|
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 avery ];
|
|
platforms = platforms.unix;
|
|
license = licenses.zlib;
|
|
};
|
|
}
|