refactor devshell definition
This commit is contained in:
parent
e3c6d1eaa6
commit
4783f0a293
1 changed files with 17 additions and 26 deletions
43
flake.nix
43
flake.nix
|
@ -77,33 +77,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
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
|
openssh
|
||||||
openssh
|
openssl
|
||||||
openssl
|
pkg-config
|
||||||
pkg-config
|
statix
|
||||||
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 = {
|
darwinConfigurations = {
|
||||||
"FORM3-CYRYLPLOTN" = darwin.lib.darwinSystem rec {
|
"FORM3-CYRYLPLOTN" = darwin.lib.darwinSystem rec {
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
|
|
Loading…
Reference in a new issue