Unverified Commit 489e9a86 authored by Donovan Glover's avatar Donovan Glover
Browse files

hyprnome: cleanup

parent 597c9f61
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, nix-update-script
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  installShellFiles,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
@@ -18,17 +19,15 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-DpbRs97sr5wpJSrYF99ZiQ0SZOZdoQjfaLhKIAU95HA=";

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

  postInstall = ''
    installManPage target/man/hyprnome.1

    installShellCompletion --cmd hyprnome \
      --bash <(cat target/completions/hyprnome.bash) \
      --fish <(cat target/completions/hyprnome.fish) \
      --zsh <(cat target/completions/_hyprnome)
      --bash target/completions/hyprnome.bash \
      --fish target/completions/hyprnome.fish \
      --zsh target/completions/_hyprnome
  '';

  passthru.updateScript = nix-update-script { };