mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-06-07 23:27:39 +00:00
Nix integration
This commit is contained in:
parent
89a5ee979d
commit
f6d01996eb
18 changed files with 616 additions and 24 deletions
18
ns3-simulations/nix/simulator/default.nix
Normal file
18
ns3-simulations/nix/simulator/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ stdenv, ns3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
##### Configure NIX #####
|
||||
name="simulator";
|
||||
src=./src;
|
||||
|
||||
##### Export ns3 location #####
|
||||
NS3_PATH=ns3;
|
||||
|
||||
##### Configure Phases #####
|
||||
buildPhase=''make'';
|
||||
installPhase=''
|
||||
mkdir -p $out/bin
|
||||
install -D -t $out/bin simulator
|
||||
'';
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue