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