1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00
This commit is contained in:
Robin Appelman 2024-05-06 15:16:48 +02:00
commit 4e6d6e4b3a
5 changed files with 39 additions and 14 deletions

27
nix/schema.nix Normal file
View file

@ -0,0 +1,27 @@
{
stdenv,
rustPlatform,
lib,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
in
rustPlatform.buildRustPackage {
pname = "demostf-parser-schema";
version = "0.1.0";
cargoBuildFlags = ''
--bin schema
'';
src = lib.traceVal src;
buildType = "debug";
buildFeatures = ["schema"];
doCheck = false;
cargoLock = {
lockFile = ../Cargo.lock;
};
}