mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
1009 B
Nix
48 lines
1009 B
Nix
{ lib
|
|
, 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";
|
|
};
|
|
}
|