nixpkgs/pkgs/applications/office/treesheets/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.7 KiB
Nix
Raw Permalink Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
, wrapGAppsHook3
2022-10-08 18:25:01 +00:00
, makeWrapper
, wxGTK
, Cocoa
, unstableGitUpdater
}:
2017-04-01 13:34:17 +00:00
stdenv.mkDerivation rec {
pname = "treesheets";
version = "0-unstable-2024-09-08";
2017-04-01 13:34:17 +00:00
src = fetchFromGitHub {
owner = "aardappel";
repo = "treesheets";
rev = "8db448f67710194d64211ac467ffd2d456854432";
hash = "sha256-SM62ymN5HXRiyXayoWQaGXLCGEDbHcKMJdPLXDv5dv8=";
2017-04-01 13:34:17 +00:00
};
nativeBuildInputs = [
cmake
ninja
wrapGAppsHook3
2022-10-08 18:25:01 +00:00
makeWrapper
];
2017-04-01 13:34:17 +00:00
buildInputs = [
wxGTK
2022-10-08 18:25:01 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Cocoa
];
2017-04-01 13:34:17 +00:00
env.NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\"";
2017-04-01 13:34:17 +00:00
2022-10-08 18:25:01 +00:00
postInstall = lib.optionalString stdenv.hostPlatform.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;
};
};
2017-04-01 13:34:17 +00:00
meta = with lib; {
2017-04-01 13:34:17 +00:00
description = "Free Form Data Organizer";
mainProgram = "treesheets";
2017-04-01 13:34:17 +00:00
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/";
2024-04-07 00:47:58 +00:00
maintainers = with maintainers; [ obadz ];
2022-10-08 18:25:01 +00:00
platforms = platforms.unix;
license = licenses.zlib;
2017-04-01 13:34:17 +00:00
};
}