mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
pizauth: init at 1.0.4
This commit is contained in:
parent
c5b6c986b3
commit
10fbc5b29b
43
pkgs/by-name/pi/pizauth/package.nix
Normal file
43
pkgs/by-name/pi/pizauth/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "pizauth";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ltratt";
|
||||
repo = "pizauth";
|
||||
rev = "pizauth-${version}";
|
||||
hash = "sha256-Du+MVdYVQgH2V7928kpur+Xp/0y7HXgB8ZC0qciiQvs=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-DrpYMVGvu7UnzQToVgVptURqp7XyoR1iYUfRSLZaqXw=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd pizauth \
|
||||
--bash share/bash/completion.bash
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Command-line OAuth2 authentication daemon";
|
||||
homepage = "https://github.com/ltratt/pizauth";
|
||||
changelog = "https://github.com/ltratt/pizauth/blob/${src.rev}/CHANGES.md";
|
||||
license = with lib.licenses; [
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [ moraxyc ];
|
||||
mainProgram = "pizauth";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user