1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-10-01 00:34:06 +02:00
parser/nix/schema.nix
2026-09-01 14:38:57 +02:00

27 lines
462 B
Nix

{
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";
}