flake reorg

This commit is contained in:
Robin Appelman 2025-05-30 23:27:20 +02:00
commit 6fe18f9771
30 changed files with 146 additions and 214 deletions

20
nix/package.nix Normal file
View file

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