added cli options

This commit is contained in:
Parker TenBroeck 2026-03-11 13:23:28 -04:00
parent defbd88adf
commit 00dcf6d3f8
4 changed files with 119 additions and 11 deletions

21
relay.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.rustPlatform.buildRustPackage {
pname = "relay";
version = "0.1.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
cargoBuildFlags = [ "-p" "relay" ];
nativeBuildInputs = [ pkgs.makeWrapper ];
buildInputs = [ pkgs.ghdl-llvm ];
postFixup = ''
wrapProgram $out/bin/relay \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.ghdl-llvm ]}
'';
}