nix setup

This commit is contained in:
Robin Appelman 2024-07-20 17:11:20 +02:00
commit 20464a8f68
8 changed files with 46 additions and 140 deletions

18
nix/logging-extractor.nix Normal file
View file

@ -0,0 +1,18 @@
{
stdenv,
rustPlatform,
lib,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ../logging-extractor ["Cargo.*" "(src|tests|test-data)(/.*)?"];
in
rustPlatform.buildRustPackage rec {
pname = "logging-extractor";
version = "0.1.0";
inherit src;
cargoLock = {
lockFile = ../logging-extractor/Cargo.lock;
};
}