chore(repo): flake formatting
This commit is contained in:
parent
a40f78e88f
commit
7af8e02462
1 changed files with 23 additions and 29 deletions
24
flake.nix
24
flake.nix
|
@ -9,30 +9,25 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
extra-trusted-public-keys =
|
||||||
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
||||||
extra-substituters = "https://devenv.cachix.org";
|
extra-substituters = "https://devenv.cachix.org";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, devenv, systems, ... }@inputs:
|
outputs = { self, nixpkgs, devenv, systems, ... }@inputs:
|
||||||
let
|
let forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||||
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: {
|
||||||
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
||||||
devenv-test = self.devShells.${system}.default.config.test;
|
devenv-test = self.devShells.${system}.default.config.test;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forEachSystem
|
devShells = forEachSystem (system:
|
||||||
(system:
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
let
|
in {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
default = devenv.lib.mkShell {
|
default = devenv.lib.mkShell {
|
||||||
inherit inputs pkgs;
|
inherit inputs pkgs;
|
||||||
modules = [
|
modules = [{
|
||||||
{
|
|
||||||
languages.python = {
|
languages.python = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = "3.11";
|
version = "3.11";
|
||||||
|
@ -44,8 +39,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue