nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, rustPlatform, fetchurl, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "okapi";
5 version = "1.4.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-wNruDPjYHDJtpzQIly4da9rQg1ftdCVxRNNLkFsbKXs=";
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}