From d2919b9620c88756b73aa0cb13f9f014703b67c4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 5 Dec 2021 14:35:27 +0800 Subject: [PATCH] Revert "flake: better shells" llvm-config/llvm-sys hates pkgs.buildEnv. This reverts commit e4f35372d316c6bfcc58544e8ef3d509eb16b66a. --- flake.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 62d4d11bf..c72bb8ada 100644 --- a/flake.nix +++ b/flake.nix @@ -106,13 +106,9 @@ ); }; - # Use "nix develop" to debug the derivation. - devShell.x86_64-linux = packages.x86_64-linux.nac3artiq; - - # Use "nix shell" to enter a development environment. - defaultPackage.x86_64-linux = pkgs.buildEnv { + devShell.x86_64-linux = pkgs.mkShell { name = "nac3-dev-shell"; - paths = with pkgs; [ + buildInputs = with pkgs; [ llvm_12 clang_12 lld_12 @@ -129,7 +125,7 @@ hydraJobs = { inherit (packages.x86_64-linux) nac3artiq; nac3artiq-mingw = packages.x86_64-w64-mingw32.nac3artiq; - } // (pkgs.lib.foldr (a: b: {"${pkgs.lib.strings.getName a}" = a;} // b) {} defaultPackage.x86_64-linux.paths); + } // (pkgs.lib.foldr (a: b: {"${pkgs.lib.strings.getName a}" = a;} // b) {} devShell.x86_64-linux.buildInputs); }; nixConfig = {