Unverified Commit 18e78c07 authored by Philip Taron's avatar Philip Taron
Browse files

qrtool: nixfmt

parent 25e3758f
Loading
Loading
Loading
Loading
+22 −16
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, asciidoctor
, installShellFiles
{
  lib,
  stdenv,
  fetchFromGitHub,
  rustPlatform,
  asciidoctor,
  installShellFiles,
}:

rustPlatform.buildRustPackage rec {
@@ -19,13 +20,18 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-lR/LusIgdA+G7YeSLHjxdcC96tOSqSyalVamS42ORs0=";

  nativeBuildInputs = [ asciidoctor installShellFiles ];
  nativeBuildInputs = [
    asciidoctor
    installShellFiles
  ];

  postInstall = ''
  postInstall =
    ''
      # Built by ./build.rs using `asciidoctor`
      installManPage ./target/*/release/build/qrtool*/out/*.?

  '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    ''
    + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
      installShellCompletion --cmd qrtool \
        --bash <($out/bin/qrtool --generate-completion bash) \
        --fish <($out/bin/qrtool --generate-completion fish) \