diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 684af44fe44d..cecc92804e56 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12399,6 +12399,13 @@ githubId = 2881268; name = "John Hollowell"; }; + jhult = { + email = "Jonathan@JonathanHult.com"; + github = "jhult"; + githubId = 9849069; + name = "Jonathan Hult"; + keys = [ { fingerprint = "DEE7 054C 5D43 ABEA C0F9 8BE4 3512 C8F8 2E2F 2A16"; } ]; + }; jiegec = { name = "Jiajie Chen"; email = "c@jia.je"; diff --git a/pkgs/by-name/md/mdbook-pagecrypt/package.nix b/pkgs/by-name/md/mdbook-pagecrypt/package.nix new file mode 100644 index 000000000000..2dc4df32a5aa --- /dev/null +++ b/pkgs/by-name/md/mdbook-pagecrypt/package.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + openssl, + pkg-config, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mdbook-pagecrypt"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "Wybxc"; + repo = "mdbook-pagecrypt"; + tag = "v${finalAttrs.version}"; + hash = "sha256-pwEiqLJM4EXqt32j5h7aaJdcdauRtkvxSSu1wbtWr5E="; + }; + + cargoHash = "sha256-muhLJfOh5riSuymmu1NSemM+c+7Y1Ya/YG9TjFQgPkk="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + meta = { + description = "Encrypt your mdBook-built site with password protection"; + mainProgram = "mdbook-pagecrypt"; + homepage = "https://github.com/Wybxc/mdbook-pagecrypt"; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ jhult ]; + }; +})