flake reorg

This commit is contained in:
Robin Appelman 2025-05-30 23:01:05 +02:00
commit db5cef6fb7
10 changed files with 109 additions and 85 deletions

19
nix/package.nix Normal file
View file

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