Permalink
Browse files

Optionally disable openstack support in Snabb

  • Loading branch information...
domenkozar authored and Your Name committed Nov 5, 2016
1 parent 1715122 commit e1332fdaa669e3a87078e890670dbdcacde834dd
Showing with 2 additions and 1 deletion.
  1. +2 −1 default.nix
View
@@ -5,6 +5,7 @@
{ pkgs ? (import <nixpkgs> {})
, source ? ./.
, version ? "dev"
, supportOpenstack ? true
}:
with pkgs;
@@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
for f in $(find src/program/snabbnfv/ -type f); do
substituteInPlace $f --replace "/bin/bash" "${bash}/bin/bash"
done
'' + lib.optionalString supportOpenstack ''
# We need a way to pass $PATH to the scripts
sed -i '2iexport PATH=${git}/bin:${mariadb}/bin:${which}/bin:${procps}/bin:${coreutils}/bin' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
sed -i '2iexport PATH=${git}/bin:${coreutils}/bin:${diffutils}/bin:${nettools}/bin' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc

0 comments on commit e1332fd

Please sign in to comment.