about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-06-06 23:20:45 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-06-07 11:34:54 +0000
commit257cb398b57f5fabef3489743c4dd83bd9c3bddf (patch)
tree5d822cf4c03e044d6007dd9b425164646a088b7a /pkgs/applications/misc
parent568b71889cbc3344489d5c3b8cf075f33f855c29 (diff)
shavee: refactor
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/shavee/default.nix26
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/applications/misc/shavee/default.nix b/pkgs/applications/misc/shavee/default.nix
index 12ba3fbf6c3b9..10dc7507a00dc 100644
--- a/pkgs/applications/misc/shavee/default.nix
+++ b/pkgs/applications/misc/shavee/default.nix
@@ -1,4 +1,12 @@
-{ lib, pkgs, rustPlatform, fetchFromGitHub, pkg-config, openssl, zlib,stdenv, pam }:
+{ lib
+, stdenv
+, rustPlatform
+, fetchFromGitHub
+, pam
+, pkg-config
+, openssl
+, zlib
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "shavee";
@@ -8,10 +16,10 @@ rustPlatform.buildRustPackage rec {
     owner = "ashuio";
     repo = "shavee";
     rev = "v${version}";
-    sha256 = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8=";
+    hash = "sha256-41wJ3QBZdmCl7v/6JetXhzH2zF7tsKYMKZY1cKhByX8=";
   };
 
-  cargoSha256 = "sha256-iNGn5KknSNgazFSu6Nur7AkKVb6qKMxuFwTdCz5djWU=";
+  cargoHash = "sha256-iNGn5KknSNgazFSu6Nur7AkKVb6qKMxuFwTdCz5djWU=";
 
   nativeBuildInputs = [
     pkg-config
@@ -19,8 +27,8 @@ rustPlatform.buildRustPackage rec {
 
   buildInputs = [
     openssl
-    zlib
     pam
+    zlib
   ];
 
    # these tests require network access
@@ -29,11 +37,11 @@ rustPlatform.buildRustPackage rec {
     "--skip=filehash::tests::get_filehash_unit_test"
   ];
 
-  meta = with lib; {
-    description = "A Program to automatically decrypt and mount ZFS datasets using Yubikey HMAC as 2FA or any File on USB/SFTP/HTTPS.";
+  meta = {
     homepage = "https://github.com/ashuio/shavee";
-    license = licenses.mit;
-    maintainers = with maintainers; [jasonodoom];
-    platforms = platforms.linux;
+    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;
   };
 }