Merge pull request #334959 from Lenivaya/qrrs

qrrs: init at 0.1.10
This commit is contained in:
Philip Taron 2024-08-17 08:01:57 -07:00 committed by GitHub
commit d0c039204b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 45 additions and 0 deletions

View File

@ -11502,6 +11502,12 @@
githubId = 31388299;
name = "Leonardo Eugênio";
};
lenivaya = {
name = "Danylo Osipchuk";
email = "danylo.osipchuk@proton.me";
github = "lenivaya";
githubId = 49302467;
};
leo248 = {
github = "leo248";
githubId = 95365184;

View 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; [ lenivaya ];
description = "CLI QR code generator and reader written in rust";
license = licenses.mit;
homepage = "https://github.com/Lenivaya/qrrs";
mainProgram = "qrrs";
};
}