This commit is contained in:
Robin Appelman 2024-07-25 23:00:53 +02:00
commit 169134bd53
5 changed files with 109 additions and 16 deletions

View file

@ -26,4 +26,5 @@ in {
name = "extracted-logs";
paths = flatten (map attrValues (attrValues final.extracted-logs-parts-rust));
};
logsmash = final.callPackage ./package.nix {};
}

23
nix/package.nix Normal file
View file

@ -0,0 +1,23 @@
{
stdenv,
makeRustPlatform,
rust-bin,
lib,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ../. ["Cargo.*" "(src|data)(/.*)?"];
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;
};
}