Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
84 lines
1.9 KiB
Nix
84 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
cargo-tauri,
|
|
dbus,
|
|
fetchgit,
|
|
fetchYarnDeps,
|
|
freetype,
|
|
gsettings-desktop-schemas,
|
|
yarnConfigHook,
|
|
nodejs,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
webkitgtk_4_1,
|
|
libayatana-appindicator,
|
|
wrapGAppsHook4,
|
|
sqlite,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "treedome";
|
|
version = "0.6.1";
|
|
|
|
src = fetchgit {
|
|
url = "https://codeberg.org/solver-orgz/treedome";
|
|
rev = version;
|
|
hash = "sha256-qa87pgNHGRhP1G4TEFHYrkiJ9AHWG7PUdgxEF4X9EM8=";
|
|
fetchLFS = true;
|
|
};
|
|
|
|
cargoHash = "sha256-Rg65BiHQF7bBBCtc5F+gY31yhcuI0+IDfxr3pFmxT+w=";
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
hash = "sha256-Q0xsi1xymQne6qN0oxm4YkaDLnGL17iuj70CTdQlxzM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
|
|
--replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cargo-tauri.hook
|
|
nodejs
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
yarnConfigHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
openssl
|
|
freetype
|
|
webkitgtk_4_1
|
|
libayatana-appindicator
|
|
gsettings-desktop-schemas
|
|
sqlite
|
|
];
|
|
|
|
cargoRoot = "src-tauri";
|
|
buildAndTestSubdir = cargoRoot;
|
|
|
|
env = {
|
|
VERGEN_GIT_DESCRIBE = version;
|
|
};
|
|
|
|
# WEBKIT_DISABLE_COMPOSITING_MODE essential in NVIDIA + compositor https://github.com/NixOS/nixpkgs/issues/212064#issuecomment-1400202079
|
|
postFixup = ''
|
|
wrapProgram "$out/bin/treedome" \
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Local-first, encrypted, note taking application organized in tree-like structures";
|
|
homepage = "https://codeberg.org/solver-orgz/treedome";
|
|
license = lib.licenses.agpl3Plus;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "treedome";
|
|
maintainers = with lib.maintainers; [ tengkuizdihar ];
|
|
changelog = "https://codeberg.org/solver-orgz/treedome/releases/tag/${version}";
|
|
};
|
|
}
|