From 6d0eadc43951dcc0730fc18b34a6494f30251d58 Mon Sep 17 00:00:00 2001 From: parth Date: Mon, 25 Nov 2024 13:39:09 -0500 Subject: [PATCH 1/2] maintainers: add parth --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e831b07b5197..9eb601c7c811 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16771,6 +16771,11 @@ githubId = 33826198; name = "Philipp Arras"; }; + parth = { + github = "parth"; + githubId = 821972; + name = "Parth Mehrotra"; + }; pashashocky = { email = "pashashocky@gmail.com"; github = "pashashocky"; From 9b0e7e5e504ff7184de67a973236c81f3062ea80 Mon Sep 17 00:00:00 2001 From: parth Date: Tue, 26 Nov 2024 13:36:25 -0500 Subject: [PATCH 2/2] lockbook: init at 0.9.15 --- pkgs/by-name/lo/lockbook/package.nix | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/lo/lockbook/package.nix diff --git a/pkgs/by-name/lo/lockbook/package.nix b/pkgs/by-name/lo/lockbook/package.nix new file mode 100644 index 000000000000..751a83f43136 --- /dev/null +++ b/pkgs/by-name/lo/lockbook/package.nix @@ -0,0 +1,50 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + installShellFiles, +}: +rustPlatform.buildRustPackage rec { + pname = "lockbook"; + version = "0.9.15"; + + src = fetchFromGitHub { + owner = "lockbook"; + repo = "lockbook"; + rev = "refs/tags/${version}"; + hash = "sha256-hqBjA/6MWlhVjV4m+cIcnoRTApHuzbPzivMsaQHfRcc="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-+M+wL26KDbLKhcujPyWAsTlXwLrQVCUbTnnu/7sXul4="; + + doCheck = false; # there are no cli tests + cargoBuildFlags = [ + "--package" + "lockbook-cli" + ]; + + 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 ]; + }; +}