Browse Source

build.nix: Add option to build with assertions.

Ambroz Bizjak 11 years ago
parent
commit
8f7fe765ad
1 changed files with 6 additions and 1 deletions
  1. 6 1
      build.nix

+ 6 - 1
build.nix

@@ -1,2 +1,7 @@
 with import <nixpkgs> {};
-pkgs.badvpn.overrideDerivation (attrs: { src = stdenv.lib.cleanSource ./. ; })
+let
+   badvpnLocal = pkgs.badvpn.overrideDerivation (attrs: { src = stdenv.lib.cleanSource ./. ; });
+in rec {
+   badvpn = badvpnLocal;
+   badvpnWithDebug = badvpnLocal.override { debug = true; };
+}