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
24
nix/parser.nix
Normal file
24
nix/parser.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches|tests|test_data)(/.*)?"];
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "demostf-parser";
|
||||
version = "0.1.0";
|
||||
|
||||
cargoBuildFlags = ''
|
||||
--bin parse_demo
|
||||
'';
|
||||
|
||||
inherit src;
|
||||
|
||||
doCheck = stdenv.system == "x86_64-linux"; # building the tests takes +- forever on aarch64 for some reason
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue