From 2fda02da010570e2accc7fd41c6781ae29f28623 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Fri, 27 Sep 2019 16:16:00 -0700 Subject: [PATCH] Add "-debug" suffix to rust debug derivation name --- nix/overlays/dfinity-sdk.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/overlays/dfinity-sdk.nix b/nix/overlays/dfinity-sdk.nix index 2c1d869100..a7296fedd7 100644 --- a/nix/overlays/dfinity-sdk.nix +++ b/nix/overlays/dfinity-sdk.nix @@ -2,11 +2,13 @@ self: super: { dfinity-sdk = rec { packages = rec { rust-workspace = super.callPackage ../rust-workspace.nix {}; - rust-workspace-debug = rust-workspace.override (_: { + rust-workspace-debug = (rust-workspace.override (_: { release = false; doClippy = true; doFmt = true; doDoc = true; + })).overrideAttrs (oldAttrs: { + name = "${oldAttrs.name}-debug"; }); rust-workspace-doc = rust-workspace-debug.doc; };