From 03385bca801b117d3fb799da76e7ae309c9a069f Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Wed, 22 Dec 2021 09:42:21 -0800 Subject: [PATCH] Added musl devshell --- flake.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9b0bd343..6e2c68cf 100644 --- a/flake.nix +++ b/flake.nix @@ -89,9 +89,17 @@ build = self.hydraJobs.build.${system}; }); - devShell = forAllSystems (system: pkgs.mkShell { - buildInputs = [ self.defaultPackage.${system}.inputDerivation]; - }); + devShell = forAllSystems (system: self.devShells.${system}.glibc); + + devShells = forAllSystems (system: + { + glibc = pkgs.mkShell { + buildInputs = [ self.packages.${system}.patchelf.inputDerivation]; + }; + musl = pkgs.pkgsMusl.mkShell { + buildInputs = [ self.packages.${system}.patchelf-musl.inputDerivation]; + }; + }); defaultPackage = forAllSystems (system: self.packages.${system}.patchelf