2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pam
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
}:
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shavee";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.7.3";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ashuio";
|
|
|
|
repo = "shavee";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-tnIqhZpqdy8pV4L6KF5v19ufpWRpMX5gTPlWWbwB3RU=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
pam
|
2023-07-15 17:15:38 +00:00
|
|
|
zlib
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# these tests require network access
|
|
|
|
checkFlags = [
|
|
|
|
"--skip=filehash::tests::remote_file_hash"
|
|
|
|
"--skip=filehash::tests::get_filehash_unit_test"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/ashuio/shavee";
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "A program to automatically decrypt and mount ZFS datasets using Yubikey HMAC as 2FA or any File on USB/SFTP/HTTPS";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ jasonodoom ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|