nixpkgs/pkgs/by-name/qr/qrrs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
908 B
Nix
Raw Permalink Normal View History

2024-08-16 00:02:09 +03:00
{
lib,
fetchFromGitHub,
rustPlatform,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "qrrs";
version = "0.1.10";
src = fetchFromGitHub {
owner = "lenivaya";
repo = "qrrs";
rev = "v${version}";
hash = "sha256-L8sqvLbh85b8Ds9EvXNkyGVXm8BF3ejFd8ZH7QoxJdU=";
2024-08-16 00:02:09 +03:00
};
cargoHash = "sha256-/aRr5UeGKGt+H9+C9MWcpMriPeIVEwp7xnigrUvMUiw=";
2024-08-16 00:02:09 +03:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage ./man/*.?
installShellCompletion --cmd qrrs \
--bash <(cat ./completions/qrrs.bash) \
--fish <(cat ./completions/qrrs.fish) \
--zsh <(cat ./completions/_qrrs)
'';
meta = with lib; {
2024-08-16 01:11:49 +03:00
maintainers = with maintainers; [ lenivaya ];
2024-08-16 00:02:09 +03:00
description = "CLI QR code generator and reader written in rust";
license = licenses.mit;
homepage = "https://github.com/Lenivaya/qrrs";
mainProgram = "qrrs";
};
}