Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
1.9 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
gtk3,
glib,
gobject-introspection,
gdk-pixbuf,
libxkbcommon,
vulkan-loader,
makeDesktopItem,
autoPatchelfHook,
copyDesktopItems,
}:
let
desc = "Private, polished note-taking platform";
in
rustPlatform.buildRustPackage rec {
pname = "lockbook-desktop";
version = "25.10.7";
src = fetchFromGitHub {
owner = "lockbook";
repo = "lockbook";
tag = version;
hash = "sha256-EzVMTJaxPeIOJUdwmaShMLEe1XQcJx+0i1Rl0ILi5+c=";
};
cargoHash = "sha256-ze82Iu2lH0n3ucKibLu3/VWMaaDWhs0oFFe/na2GbmY=";
nativeBuildInputs = [
pkg-config
autoPatchelfHook
copyDesktopItems
];
buildInputs = [
gtk3
glib
gobject-introspection
gdk-pixbuf
libxkbcommon
];
runtimeDependencies = [
vulkan-loader
];
doCheck = false; # there are no cli tests
cargoBuildFlags = [
"--package"
"lockbook-linux"
];
desktopItems = makeDesktopItem {
desktopName = "Lockbook";
name = "lockbook-desktop";
comment = desc;
icon = "lockbook";
exec = "lockbook-desktop";
categories = [
"Office"
"Documentation"
"Utility"
];
};
postInstall = ''
mv $out/bin/lockbook-linux $out/bin/lockbook-desktop
install -D public_site/favicon.svg $out/share/icons/hicolor/scalable/apps/lockbook.svg
'';
meta = {
description = desc;
longDescription = ''
Write notes, sketch ideas, and store files in one secure place.
Share seamlessly, keep data synced, and access it on any
platformeven offline. Lockbook encrypts files so even we
cant see them, but dont take our word for it:
Lockbook is 100% open-source.
'';
homepage = "https://lockbook.net";
license = lib.licenses.unlicense;
platforms = lib.platforms.linux;
changelog = "https://github.com/lockbook/lockbook/releases/tag/${version}";
maintainers = [ lib.maintainers.parth ];
};
}