Nix integration

This commit is contained in:
Loic Guegan 2019-05-04 10:32:19 +02:00
parent 89a5ee979d
commit f6d01996eb
18 changed files with 616 additions and 24 deletions

View 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
'';
}