Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, rustPlatform, fetchurl, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "okapi"; 5 version = "1.6.0"; 6 7 src = fetchurl { 8 url = "https://github.com/trinsic-id/okapi/releases/download/v${version}/okapi-vendor-${version}.tar.gz"; 9 sha256 = "sha256-wszpCzh1VhqBlox7ywWi6WKUmxQUTsf5N5IiJumlEbM="; 10 }; 11 12 cargoVendorDir = "vendor"; 13 doCheck = false; 14 15 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 16 17 postInstall = '' 18 cp -r include $out 19 ''; 20 21 meta = with lib; { 22 description = "Okapi Library"; 23 longDescription = '' 24 Collection of tools that support workflows for working 25 with authentic data and identity management 26 ''; 27 homepage = "https://github.com/trinsic-id/okapi"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ tmarkovski ]; 30 }; 31}