refactor devshell definition
This commit is contained in:
parent
e3c6d1eaa6
commit
4783f0a293
1 changed files with 17 additions and 26 deletions
25
flake.nix
25
flake.nix
|
@ -77,11 +77,10 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
in rec {
|
||||
devShell."x86_64-darwin" =
|
||||
nixpkgs-stable.legacyPackages."x86_64-darwin".mkShell {
|
||||
buildInputs =
|
||||
with nixpkgs-nixos-unstable.legacyPackages."x86_64-darwin"; [
|
||||
mkShell = packageSet: system:
|
||||
let pkgs = packageSet.legacyPackages.${system};
|
||||
in pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
cacert
|
||||
git
|
||||
nixpkgs-fmt
|
||||
|
@ -91,18 +90,10 @@
|
|||
statix
|
||||
];
|
||||
};
|
||||
devShell."x86_64-linux" =
|
||||
nixpkgs-stable.legacyPackages."x86_64-linux".mkShell {
|
||||
buildInputs =
|
||||
with nixpkgs-nixos-unstable.legacyPackages."x86_64-linux"; [
|
||||
cacert
|
||||
git
|
||||
nixpkgs-fmt
|
||||
openssh
|
||||
openssl
|
||||
pkg-config
|
||||
statix
|
||||
];
|
||||
in {
|
||||
devShells = {
|
||||
"x86_64-darwin".default = mkShell nixpkgs-stable "x86_64-darwin";
|
||||
"x86_64-linux".default = mkShell nixpkgs-stable "x86_64-linux";
|
||||
};
|
||||
darwinConfigurations = {
|
||||
"FORM3-CYRYLPLOTN" = darwin.lib.darwinSystem rec {
|
||||
|
|
Loading…
Reference in a new issue