blob: 811b74b9724f960c46a7cbc9cb6128b55bd38f53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "pizauth";
version = "1.0.5";
src = fetchFromGitHub {
owner = "ltratt";
repo = "pizauth";
rev = "pizauth-${version}";
hash = "sha256-9NezG644oCLTWHTdUaUpJbuwkJu3at/IGNH3FSxl/DI=";
};
cargoHash = "sha256-Lp5ovkQKShgT7EFvQ+5KE3eQWJEQAL68Bk1d+wUo+bc=";
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";
};
}
|