nixpkgs/pkgs/tools/security/biscuit-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
869 B
Nix
Raw Normal View History

2023-06-29 18:38:58 +02:00
{ lib
, fetchFromGitHub
, rustPlatform
, testers
, nix-update-script
, biscuit-cli
}:
rustPlatform.buildRustPackage rec {
pname = "biscuit-cli";
2023-09-30 13:46:51 +02:00
version = "0.4.1";
src = fetchFromGitHub {
owner = "biscuit-auth";
repo = "biscuit-cli";
2023-06-29 18:38:58 +02:00
rev = version;
2023-09-30 13:46:51 +02:00
sha256 = "sha256-Mvrv3BU0Pw85fs8IbjMKSQLIhtU6SKoLC0cuGdhfAYs=";
};
2023-09-30 13:46:51 +02:00
cargoHash = "sha256-tgmM0rswIFrpFyupaASTXYvIyhVu0fXJJN+hg0p+vrQ=";
2023-06-29 18:38:58 +02:00
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
inherit version;
package = biscuit-cli;
command = "biscuit --version";
};
};
2023-06-29 18:38:58 +02:00
meta = with lib; {
description = "CLI to generate and inspect biscuit tokens";
homepage = "https://www.biscuitsec.org/";
2023-06-29 18:38:58 +02:00
maintainers = with maintainers; [ shlevy gaelreyrol ];
license = licenses.bsd3;
mainProgram = "biscuit";
};
}