From a83627890e48a8333bca54ea49c30c772f1dbdf2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 25 Jun 2020 20:43:35 +0200 Subject: [PATCH] Place packages together --- default.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index ffd2af3..aad0972 100644 --- a/default.nix +++ b/default.nix @@ -8,11 +8,6 @@ let self.bsc = rec { - # Custom OpenMPI with mpi_cxx enabled for TAMPI - openmpi = callPackage ./bsc/openmpi/default.nix { - enableCxx = true; - }; - # Load the default implementation #mpi = pkgs.mpich; #mpi = pkgs.openmpi; @@ -27,6 +22,15 @@ let binutils = pkgs.binutils; coreutils = pkgs.coreutils; + # --------------------------------------------------------- # + # BSC Packages + # --------------------------------------------------------- # + + # Custom OpenMPI with mpi_cxx enabled for TAMPI + openmpi = callPackage ./bsc/openmpi/default.nix { + enableCxx = true; + }; + fftw = callPackage ./bsc/fftw/default.nix { mpi = mpi; }; @@ -78,12 +82,14 @@ let inherit mpi tampi; }; - inherit (callPackage ./bsc/nix { + inherit (callPackage ./bsc/nix/default.nix { storeDir = "/nix/store"; stateDir = "/nix/var"; boehmgc = pkgs.boehmgc.override { enableLargeConfig = true; }; }) - nix; + nix + nixUnstable + nixFlakes; }; in pkgs // self