From bac1a87eb918053e36c2b7dad30afb7b8d55462b Mon Sep 17 00:00:00 2001 From: Artyom Kazak Date: Fri, 4 Oct 2019 11:42:03 +0300 Subject: [PATCH] Use cleanSource to avoid including result/ in the source tree (#44) --- default.nix | 2 +- docker.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 229d0f6..7f2b559 100644 --- a/default.nix +++ b/default.nix @@ -71,7 +71,7 @@ let (self.callPackage ./nix/grpc-haskell.nix { }); fencer = - self.callCabal2nix "fencer" (./.) { }; + self.callCabal2nix "fencer" (pkgs.lib.cleanSource ./.) { }; }; }; }; diff --git a/docker.nix b/docker.nix index c4f2c71..54d9f75 100644 --- a/docker.nix +++ b/docker.nix @@ -1,5 +1,4 @@ let - # TODO: this rebuilds 'fencer', can we avoid that? drv = import ./default.nix { }; pkgs = drv.pkgs; fencer = drv.fencer;