mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
move nix
This commit is contained in:
parent
c2985d13f2
commit
4e6d6e4b3a
5 changed files with 39 additions and 14 deletions
27
nix/codegen.nix
Normal file
27
nix/codegen.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "demostf-parser-codegen";
|
||||
version = "0.1.0";
|
||||
|
||||
cargoBuildFlags = ''
|
||||
--bin codegen
|
||||
'';
|
||||
|
||||
src = lib.traceVal src;
|
||||
|
||||
buildType = "debug";
|
||||
buildFeatures = ["codegen"];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue