refactor devshell definition

This commit is contained in:
Cyryl Płotnicki 2022-10-29 21:22:35 +01:00
parent e3c6d1eaa6
commit 4783f0a293

View file

@ -77,11 +77,10 @@
}; };
}; };
}; };
in rec { mkShell = packageSet: system:
devShell."x86_64-darwin" = let pkgs = packageSet.legacyPackages.${system};
nixpkgs-stable.legacyPackages."x86_64-darwin".mkShell { in pkgs.mkShell {
buildInputs = packages = with pkgs; [
with nixpkgs-nixos-unstable.legacyPackages."x86_64-darwin"; [
cacert cacert
git git
nixpkgs-fmt nixpkgs-fmt
@ -91,18 +90,10 @@
statix statix
]; ];
}; };
devShell."x86_64-linux" = in {
nixpkgs-stable.legacyPackages."x86_64-linux".mkShell { devShells = {
buildInputs = "x86_64-darwin".default = mkShell nixpkgs-stable "x86_64-darwin";
with nixpkgs-nixos-unstable.legacyPackages."x86_64-linux"; [ "x86_64-linux".default = mkShell nixpkgs-stable "x86_64-linux";
cacert
git
nixpkgs-fmt
openssh
openssl
pkg-config
statix
];
}; };
darwinConfigurations = { darwinConfigurations = {
"FORM3-CYRYLPLOTN" = darwin.lib.darwinSystem rec { "FORM3-CYRYLPLOTN" = darwin.lib.darwinSystem rec {