9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
1,022 B
Nix
42 lines
1,022 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, testers
|
|
, nix-update-script
|
|
, biscuit-cli
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "biscuit-cli";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "biscuit-auth";
|
|
repo = "biscuit-cli";
|
|
rev = version;
|
|
sha256 = "sha256-Fd5wBvQe7S/UZ42FMlU+f9qTwcLIMnQrCWVRoHxOx64=";
|
|
};
|
|
|
|
cargoHash = "sha256-SHRqdKRAHkWK/pEVFYo3d+r761K4j9BkTg2angQOubk=";
|
|
|
|
# Version option does not report the correct version
|
|
# https://github.com/biscuit-auth/biscuit-cli/issues/44
|
|
patches = [ ./version-0.4.0.patch ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
inherit version;
|
|
package = biscuit-cli;
|
|
command = "biscuit --version";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "CLI to generate and inspect biscuit tokens";
|
|
homepage = "https://www.biscuitsec.org/";
|
|
maintainers = with maintainers; [ shlevy gaelreyrol ];
|
|
license = licenses.bsd3;
|
|
mainProgram = "biscuit";
|
|
};
|
|
}
|