2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, wxGTK, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "treesheets";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aardappel";
|
|
|
|
repo = "treesheets";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0krsj7i5yr76imf83krz2lmlmpbsvpwqg2d4r0jwxiydjfyj4qr4";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ wxGTK ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir "$out/share" -p
|
|
|
|
cp -av ../TS "$out/share/libexec"
|
|
|
|
|
|
|
|
mkdir "$out/bin" -p
|
|
|
|
makeWrapper "$out/share/libexec/treesheets" "$out/bin/treesheets"
|
|
|
|
|
|
|
|
mkdir "$out/share/doc" -p
|
|
|
|
|
|
|
|
for f in readme.html docs examples
|
|
|
|
do
|
|
|
|
mv -v "$out/share/libexec/$f" "$out/share/doc"
|
|
|
|
ln -sv "$out/share/doc/$f" "$out/share/libexec/$f"
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir "$out/share/applications" -p
|
|
|
|
mv -v "$out/share/libexec/treesheets.desktop" "$out/share/applications"
|
|
|
|
substituteInPlace "$out/share/applications/treesheets.desktop" \
|
|
|
|
--replace "Icon=images/treesheets.svg" "Icon=$out/share/libexec/images/treesheets.svg"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://strlen.com/treesheets/";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ obadz avery ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.zlib;
|
|
|
|
};
|
|
|
|
}
|