at 23.11-beta 38 lines 869 B view raw
1{ lib 2, fetchFromGitHub 3, rustPlatform 4, testers 5, nix-update-script 6, biscuit-cli 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "biscuit-cli"; 11 version = "0.4.1"; 12 13 src = fetchFromGitHub { 14 owner = "biscuit-auth"; 15 repo = "biscuit-cli"; 16 rev = version; 17 sha256 = "sha256-Mvrv3BU0Pw85fs8IbjMKSQLIhtU6SKoLC0cuGdhfAYs="; 18 }; 19 20 cargoHash = "sha256-tgmM0rswIFrpFyupaASTXYvIyhVu0fXJJN+hg0p+vrQ="; 21 22 passthru = { 23 updateScript = nix-update-script { }; 24 tests.version = testers.testVersion { 25 inherit version; 26 package = biscuit-cli; 27 command = "biscuit --version"; 28 }; 29 }; 30 31 meta = with lib; { 32 description = "CLI to generate and inspect biscuit tokens"; 33 homepage = "https://www.biscuitsec.org/"; 34 maintainers = with maintainers; [ shlevy gaelreyrol ]; 35 license = licenses.bsd3; 36 mainProgram = "biscuit"; 37 }; 38}