From b6c06102786fad1c3dfdcfeb92f6b104d948f185 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 16 Jun 2018 20:47:22 +0200 Subject: [PATCH] feat(build): Add toggle for tests to Nix derivation --- default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 36cacf36c..c0c3c9599 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 {}}: +{ pkgs ? import {} +, doCheck ? true }: with pkgs; rustPlatform.buildRustPackage { + inherit doCheck; + name = "journaldriver"; version = "0.1.0"; cargoSha256 = "165hmmsy9y7334g80yv21ma91rfavv2jk8fqssrccas7ryj4abki";