diff --git a/flake.nix b/flake.nix index 19e73fe..f6aff72 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: 2024 Łukasz Niemier <#@hauleth.dev> # # SPDX-License-Identifier: EUPL-1.2 - { description = "Description for the project"; @@ -46,6 +45,10 @@ enable = true; }; + git-hooks.hooks = { + rustfmt.enable = true; + }; + packages = [ pkgs.scdoc diff --git a/nix/fuk.nix b/nix/fuk.nix index cf3e76d..30550e7 100644 --- a/nix/fuk.nix +++ b/nix/fuk.nix @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: 2024 Łukasz Niemier <#@hauleth.dev> # # SPDX-License-Identifier: EUPL-1.2 - { lib, rustPlatform, @@ -20,19 +19,21 @@ rustPlatform.buildRustPackage { cargoHash = "sha256-jdiaV4B22GHKrHpuPv+eKsAt2jMv5AazLJmoEYfdUlE="; - nativeBuildInputs = [ scdoc pkg-config ]; + nativeBuildInputs = [scdoc pkg-config]; preInstall = '' - OUT=$out/man cargo xtask + OUT=$out/man cargo xtask ''; - buildInputs = [openssl] ++ lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [ - frameworks.Foundation - frameworks.CoreFoundation - frameworks.SystemConfiguration - frameworks.Security - libiconv - ]); + buildInputs = + [openssl] + ++ lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [ + frameworks.Foundation + frameworks.CoreFoundation + frameworks.SystemConfiguration + frameworks.Security + libiconv + ]); meta = with lib; { description = "Simple tool for fetching SSH keys from various sources";