This commit is contained in:
Robin Appelman 2024-08-10 00:26:41 +02:00
commit 637c58e0a0
11 changed files with 648 additions and 391 deletions

3
nix/overlay.nix Normal file
View file

@ -0,0 +1,3 @@
final: prev: {
evtype = final.callPackage ./package.nix {};
}

24
nix/package.nix Normal file
View file

@ -0,0 +1,24 @@
{
stdenv,
makeRustPlatform,
rust-bin,
lib,
extracted-logs-rust,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ../. ["Cargo.*" "(src)(/.*)?"];
rustPlatform = makeRustPlatform {
cargo = rust-bin.stable.latest.default;
rustc = rust-bin.stable.latest.default;
};
in
rustPlatform.buildRustPackage rec {
pname = "logsmash";
version = "0.1.0";
inherit src;
cargoLock = {
lockFile = ../Cargo.lock;
};
}