mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
28 lines
476 B
Nix
28 lines
476 B
Nix
{
|
|
stdenv,
|
|
rustPlatform,
|
|
lib,
|
|
}: let
|
|
inherit (lib.sources) sourceByRegex;
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "demostf-parser-codegen";
|
|
version = "0.1.0";
|
|
|
|
cargoBuildFlags = ''
|
|
--bin codegen
|
|
'';
|
|
|
|
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
|
|
|
buildType = "debug";
|
|
buildFeatures = ["codegen"];
|
|
|
|
doCheck = false;
|
|
|
|
cargoLock = {
|
|
lockFile = ../Cargo.lock;
|
|
};
|
|
|
|
meta.mainProgram = "codegen";
|
|
}
|