about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-06-16T18·47+0200
committerVincent Ambo <github@tazj.in>2018-06-16T19·38+0200
commitb6c06102786fad1c3dfdcfeb92f6b104d948f185 (patch)
tree683b146a5a13365dc59418b30018fe755c592184
parente4b4830a045b7ee83d1a3edd02dcfce9a88054e2 (diff)
feat(build): Add toggle for tests to Nix derivation
-rw-r--r--default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 36cacf36cd6b..c0c3c959919c 100644
--- a/default.nix
+++ b/default.nix
@@ -3,9 +3,12 @@
 # Note: This does not currently use Carnix due to an issue with
 # linking against the `systemd.dev` derivation for libsystemd.
 
-{ pkgs ? import <nixpkgs> {}}:
+{ pkgs ? import <nixpkgs> {}
+, doCheck ? true }:
 
 with pkgs; rustPlatform.buildRustPackage {
+  inherit doCheck;
+
   name        = "journaldriver";
   version     = "0.1.0";
   cargoSha256 = "165hmmsy9y7334g80yv21ma91rfavv2jk8fqssrccas7ryj4abki";