mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #240564 from gaelreyrol/biscuit-cli-update-0.4.0
biscuit-cli: 0.2.0 -> 0.4.0
This commit is contained in:
commit
3295a5ba05
3 changed files with 40 additions and 1090 deletions
1080
pkgs/tools/security/biscuit-cli/Cargo.lock
generated
1080
pkgs/tools/security/biscuit-cli/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,25 +1,42 @@
|
|||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, testers
|
||||
, nix-update-script
|
||||
, biscuit-cli
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "biscuit-cli";
|
||||
version = "0.2.0-next-pre20230103";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "biscuit-auth";
|
||||
repo = "biscuit-cli";
|
||||
rev = "0ecf1ec4c98a90b1bf3614558a029b47c57288df";
|
||||
sha256 = "sha256-ADJWqx70IwuvCBeK9rb9WBIsD+oQROQSduSQ8Bu8mfk=";
|
||||
rev = version;
|
||||
sha256 = "sha256-Fd5wBvQe7S/UZ42FMlU+f9qTwcLIMnQrCWVRoHxOx64=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
outputHashes."biscuit-auth-3.0.0-alpha4" = "sha256-4SzOupoD33D0KHZyVLriGzUHy9XXnWK1pbgqOjJH4PI=";
|
||||
lockFile = ./Cargo.lock;
|
||||
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 = {
|
||||
meta = with lib; {
|
||||
description = "CLI to generate and inspect biscuit tokens";
|
||||
homepage = "https://www.biscuitsec.org/";
|
||||
maintainers = [ lib.maintainers.shlevy ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with maintainers; [ shlevy gaelreyrol ];
|
||||
license = licenses.bsd3;
|
||||
mainProgram = "biscuit";
|
||||
};
|
||||
}
|
||||
|
|
13
pkgs/tools/security/biscuit-cli/version-0.4.0.patch
Normal file
13
pkgs/tools/security/biscuit-cli/version-0.4.0.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/cli.rs b/src/cli.rs
|
||||
index f40cfc7..d587eeb 100644
|
||||
--- a/src/cli.rs
|
||||
+++ b/src/cli.rs
|
||||
@@ -89,7 +89,7 @@ fn parse_param(kv: &str) -> Result<Param, std::io::Error> {
|
||||
|
||||
/// biscuit creation and inspection CLI. Run `biscuit --help` to see what's available.
|
||||
#[derive(Parser)]
|
||||
-#[clap(version = "0.2.0", author = "Clément D. <clement@delafargue.name>")]
|
||||
+#[clap(version = "0.4.0", author = "Clément D. <clement@delafargue.name>")]
|
||||
pub struct Opts {
|
||||
#[clap(subcommand)]
|
||||
pub subcmd: SubCommand,
|
Loading…
Reference in a new issue