2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, testers
|
|
|
|
, nix-update-script
|
|
|
|
, biscuit-cli
|
|
|
|
}:
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "biscuit-cli";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.5.0";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "biscuit-auth";
|
|
|
|
repo = "biscuit-cli";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-BLDJ4Rzu48sAklbv021XSzmATRd+D01yGHqJt6kvjGw=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-J5/3zk9ZjSuiZBKrogP+8sVZr+w9dYlROkRRJFPyVvs=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
inherit version;
|
|
|
|
package = biscuit-cli;
|
|
|
|
command = "biscuit --version";
|
|
|
|
};
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "CLI to generate and inspect biscuit tokens";
|
|
|
|
homepage = "https://www.biscuitsec.org/";
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ shlevy gaelreyrol ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
mainProgram = "biscuit";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|