nixpkgs/pkgs/applications/misc/shavee/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

49 lines
1018 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";
};
}