feat: add proper nix flake

This commit is contained in:
2026-04-13 16:48:38 -04:00
parent 9a362630a2
commit 7d1996306c
16 changed files with 296 additions and 155 deletions

24
default.nix Normal file
View File

@@ -0,0 +1,24 @@
{
lib,
pkgs,
rust,
self,
}:
pkgs.rustPlatform.buildRustPackage {
pname = "errornowatcher";
version = self.shortRev or self.dirtyShortRev;
cargoLock.lockFile = ./Cargo.lock;
src = lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
rust
mold
pkg-config
];
buildInputs = with pkgs; [
luajit
];
}