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
50 lines
1.5 KiB
Nix
50 lines
1.5 KiB
Nix
{
|
||
lib,
|
||
stdenv,
|
||
rustPlatform,
|
||
fetchFromGitHub,
|
||
installShellFiles,
|
||
}:
|
||
rustPlatform.buildRustPackage rec {
|
||
pname = "lockbook";
|
||
version = "25.10.7";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "lockbook";
|
||
repo = "lockbook";
|
||
tag = version;
|
||
hash = "sha256-EzVMTJaxPeIOJUdwmaShMLEe1XQcJx+0i1Rl0ILi5+c=";
|
||
};
|
||
|
||
cargoHash = "sha256-ze82Iu2lH0n3ucKibLu3/VWMaaDWhs0oFFe/na2GbmY=";
|
||
|
||
doCheck = false; # there are no cli tests
|
||
cargoBuildFlags = [
|
||
"--package"
|
||
"lockbook"
|
||
];
|
||
|
||
nativeBuildInputs = [ installShellFiles ];
|
||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||
installShellCompletion --bash --name lockbook.bash <($out/bin/lockbook completions bash)
|
||
installShellCompletion --zsh --name _lockbook <($out/bin/lockbook completions zsh)
|
||
installShellCompletion --fish --name lockbook.fish <($out/bin/lockbook completions fish)
|
||
'';
|
||
|
||
meta = {
|
||
description = "Private, polished note-taking platform";
|
||
longDescription = ''
|
||
Write notes, sketch ideas, and store files in one secure place.
|
||
Share seamlessly, keep data synced, and access it on any
|
||
platform—even offline. Lockbook encrypts files so even we
|
||
can’t see them, but don’t take our word for it:
|
||
Lockbook is 100% open-source.
|
||
'';
|
||
homepage = "https://lockbook.net";
|
||
license = lib.licenses.unlicense;
|
||
platforms = lib.platforms.all;
|
||
changelog = "https://github.com/lockbook/lockbook/releases";
|
||
maintainers = [ lib.maintainers.parth ];
|
||
};
|
||
}
|