mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00

This enables to add cargo `fmt`, `clippy` and `deny` to nix, using cached results. Move the `teepot` crate to the `crates` subdir to make the life easier for the `crane` flake. Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
20 lines
321 B
Nix
20 lines
321 B
Nix
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024 Matter Labs
|
|
{ lib
|
|
, inputs
|
|
, makeRustPlatform
|
|
, nixsgx
|
|
, pkg-config
|
|
, rust-bin
|
|
, pkgs
|
|
, callPackage
|
|
, ...
|
|
}@args:
|
|
let
|
|
teepotCrate = import ../teepot/teepot.nix args;
|
|
in
|
|
teepotCrate.craneLib.cargoDeny (
|
|
teepotCrate.commonArgs // {
|
|
pname = "teepot";
|
|
}
|
|
)
|