feat: add proper nix flake
This commit is contained in:
24
default.nix
Normal file
24
default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user