From 35224a6bb63ccf52b00b81d7d04261511b16428a Mon Sep 17 00:00:00 2001 From: Jason Odoom Date: Sat, 15 Apr 2023 18:02:48 -0400 Subject: [PATCH 1/2] shavee: init at 0.5.1 --- pkgs/applications/misc/shavee/default.nix | 39 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/applications/misc/shavee/default.nix diff --git a/pkgs/applications/misc/shavee/default.nix b/pkgs/applications/misc/shavee/default.nix new file mode 100644 index 00000000000..12ba3fbf6c3 --- /dev/null +++ b/pkgs/applications/misc/shavee/default.nix @@ -0,0 +1,39 @@ +{ lib, pkgs, rustPlatform, fetchFromGitHub, pkg-config, openssl, zlib,stdenv, pam }: + +rustPlatform.buildRustPackage rec { + pname = "shavee"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "ashuio"; + repo = "shavee"; + rev = "v${version}"; + sha256 = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8="; + }; + + cargoSha256 = "sha256-iNGn5KknSNgazFSu6Nur7AkKVb6qKMxuFwTdCz5djWU="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + zlib + pam + ]; + + # these tests require network access + checkFlags = [ + "--skip=filehash::tests::remote_file_hash" + "--skip=filehash::tests::get_filehash_unit_test" + ]; + + meta = with lib; { + description = "A Program to automatically decrypt and mount ZFS datasets using Yubikey HMAC as 2FA or any File on USB/SFTP/HTTPS."; + homepage = "https://github.com/ashuio/shavee"; + license = licenses.mit; + maintainers = with maintainers; [jasonodoom]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a3f8d867218..988660f9865 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33530,6 +33530,8 @@ with pkgs; shadowfox = callPackage ../tools/networking/shadowfox { }; + shavee = callPackage ../applications/misc/shavee { }; + shell_gpt = callPackage ../tools/misc/shell_gpt { }; shfmt = callPackage ../tools/text/shfmt { }; From 71e913c3535f241f0479a5e18cde8c30ce1cfecb Mon Sep 17 00:00:00 2001 From: Jason Odoom Date: Sat, 15 Apr 2023 18:05:16 -0400 Subject: [PATCH 2/2] maintainers: add jasonodoom --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ab30cecaa46..aa0433d518c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6902,6 +6902,12 @@ githubId = 6874204; name = "Jason Carr"; }; + jasonodoom = { + email = "jasonodoom@riseup.net"; + github = "jasonodoom"; + githubId = 6789916; + name = "Jason Odoom"; + }; javaguirre = { email = "contacto@javaguirre.net"; github = "javaguirre";