nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 864 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 testers, 6 nix-update-script, 7 biscuit-cli, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "biscuit-cli"; 12 version = "0.6.0"; 13 14 src = fetchFromGitHub { 15 owner = "biscuit-auth"; 16 repo = "biscuit-cli"; 17 tag = version; 18 sha256 = "sha256-s4Y4MhM79Z+4VxB03+56OqRQJaSHj2VQEJcL6CsT+2k="; 19 }; 20 21 cargoHash = "sha256-OG8/9CxOTCYXwyavdaXvak8GbCOMvelcsSJVkEgdMdI="; 22 23 passthru = { 24 updateScript = nix-update-script { }; 25 tests.version = testers.testVersion { 26 inherit version; 27 package = biscuit-cli; 28 command = "biscuit --version"; 29 }; 30 }; 31 32 meta = { 33 description = "CLI to generate and inspect biscuit tokens"; 34 homepage = "https://www.biscuitsec.org/"; 35 maintainers = with lib.maintainers; [ shlevy ]; 36 license = lib.licenses.bsd3; 37 mainProgram = "biscuit"; 38 }; 39}