From 18e78c0770312d99a41bdee449d2aec3795f5e51 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 14 Aug 2024 10:23:53 -0700 Subject: [PATCH] qrtool: nixfmt --- pkgs/by-name/qr/qrtool/package.nix | 38 +++++++++++++++++------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/qr/qrtool/package.nix b/pkgs/by-name/qr/qrtool/package.nix index ffdf0ac82538..4fb17b7ca8dc 100644 --- a/pkgs/by-name/qr/qrtool/package.nix +++ b/pkgs/by-name/qr/qrtool/package.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, fetchFromGitHub -, rustPlatform -, asciidoctor -, installShellFiles +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + asciidoctor, + installShellFiles, }: rustPlatform.buildRustPackage rec { @@ -19,18 +20,23 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-lR/LusIgdA+G7YeSLHjxdcC96tOSqSyalVamS42ORs0="; - nativeBuildInputs = [ asciidoctor installShellFiles ]; + nativeBuildInputs = [ + asciidoctor + installShellFiles + ]; - postInstall = '' - # Built by ./build.rs using `asciidoctor` - installManPage ./target/*/release/build/qrtool*/out/*.? + postInstall = + '' + # Built by ./build.rs using `asciidoctor` + installManPage ./target/*/release/build/qrtool*/out/*.? - '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - installShellCompletion --cmd qrtool \ - --bash <($out/bin/qrtool --generate-completion bash) \ - --fish <($out/bin/qrtool --generate-completion fish) \ - --zsh <($out/bin/qrtool --generate-completion zsh) - ''; + '' + + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd qrtool \ + --bash <($out/bin/qrtool --generate-completion bash) \ + --fish <($out/bin/qrtool --generate-completion fish) \ + --zsh <($out/bin/qrtool --generate-completion zsh) + ''; meta = with lib; { maintainers = with maintainers; [ philiptaron ];