mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
flake reorg
This commit is contained in:
parent
9140759082
commit
2a34eee2f1
11 changed files with 179 additions and 285 deletions
30
nix/logsmash.nix
Normal file
30
nix/logsmash.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, makeRustPlatform
|
||||
, rust-bin
|
||||
, lib
|
||||
, extracted-logs-rust
|
||||
,
|
||||
}:
|
||||
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;
|
||||
|
||||
preBuild = ''
|
||||
rm -r data/src/data
|
||||
cp -r ${extracted-logs-rust} data/src/data
|
||||
'';
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue