nixpkgs/pkgs/by-name/qr/qrrs/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

40 lines
908 B
Nix

{
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=";
};
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";
};
}