mirror of
https://github.com/ParkerTenBroeck/hdl_sim.git
synced 2026-06-06 21:24:06 -04:00
added cli options
This commit is contained in:
parent
defbd88adf
commit
00dcf6d3f8
4 changed files with 119 additions and 11 deletions
21
relay.nix
Normal file
21
relay.nix
Normal 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 ]}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue