From 322861225e0eb059e0acc0e4db41ca2064e35b1b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 14 Feb 2019 00:08:43 +0800 Subject: [PATCH] nix: use filterSource --- nix/pkgs/artiq.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/artiq.nix b/nix/pkgs/artiq.nix index bf2dd8a5d..4b694f5f3 100644 --- a/nix/pkgs/artiq.nix +++ b/nix/pkgs/artiq.nix @@ -65,7 +65,9 @@ in python3Packages.buildPythonPackage rec { name = "artiq"; - src = ./../..; + src = builtins.filterSource + (path: type: type != "directory" || builtins.baseNameOf path != ".nix") + ./../..; buildInputs = [ git ]; propagatedBuildInputs = with python3Packages; [ binutils-or1k llvm-or1k llvmlite levenshtein pyqtgraph-qt5 aiohttp pygit2 pythonparser numpy dateutil quamash scipy prettytable pyserial asyncserial h5py cython regex qt5Full pyqt5 ]; checkPhase = "python -m unittest discover -v artiq.test";