mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-18 07:59:03 +00:00
qrrs: init at 0.1.10
This commit is contained in:
parent
b271b5102e
commit
d3745a6e5f
39
pkgs/by-name/qr/qrrs/package.nix
Normal file
39
pkgs/by-name/qr/qrrs/package.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "qrrs";
|
||||
version = "0.1.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lenivaya";
|
||||
repo = "qrrs";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-L8sqvLbh85b8Ds9EvXNkyGVXm8BF3ejFd8ZH7QoxJdU=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-RLxQ7tG5e3q4vqYJU0eNvvcEnnyNc9R9at0/ACLYJiY=";
|
||||
|
||||
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; {
|
||||
maintainers = with maintainers; [ philiptaron ];
|
||||
description = "CLI QR code generator and reader written in rust";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/Lenivaya/qrrs";
|
||||
mainProgram = "qrrs";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user