depot/third_party/nixpkgs/pkgs/applications/misc/shavee/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
1,018 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pam
, pkg-config
, openssl
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "shavee";
version = "0.7.3";
src = fetchFromGitHub {
owner = "ashuio";
repo = "shavee";
rev = "v${version}";
hash = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8=";
};
cargoHash = "sha256-tnIqhZpqdy8pV4L6KF5v19ufpWRpMX5gTPlWWbwB3RU=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
pam
zlib
];
# these tests require network access
checkFlags = [
"--skip=filehash::tests::remote_file_hash"
"--skip=filehash::tests::get_filehash_unit_test"
];
meta = {
homepage = "https://github.com/ashuio/shavee";
description = "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;
mainProgram = "shavee";
};
}