nixpkgs/pkgs/by-name/sh/shavee/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1017 B
Nix
Raw Normal View History

2023-06-07 02:20:45 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
pam,
pkg-config,
openssl,
zlib,
}:
2023-04-15 22:02:48 +00:00
rustPlatform.buildRustPackage rec {
pname = "shavee";
2023-11-26 00:29:54 +00:00
version = "0.7.3";
2023-04-15 22:02:48 +00:00
src = fetchFromGitHub {
owner = "ashuio";
repo = "shavee";
rev = "v${version}";
2023-06-07 02:20:45 +00:00
hash = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8=";
2023-04-15 22:02:48 +00:00
};
2023-11-26 00:29:54 +00:00
cargoHash = "sha256-tnIqhZpqdy8pV4L6KF5v19ufpWRpMX5gTPlWWbwB3RU=";
2023-04-15 22:02:48 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
pam
2023-06-07 02:20:45 +00:00
zlib
2023-04-15 22:02:48 +00:00
];
# these tests require network access
checkFlags = [
"--skip=filehash::tests::remote_file_hash"
"--skip=filehash::tests::get_filehash_unit_test"
];
2023-06-07 02:20:45 +00:00
meta = {
2023-04-15 22:02:48 +00:00
homepage = "https://github.com/ashuio/shavee";
2023-06-07 02:20:45 +00:00
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;
2024-02-11 02:19:15 +00:00
mainProgram = "shavee";
2023-04-15 22:02:48 +00:00
};
}