mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 20:50:15 +00:00
move all files to new nixfmt rfc
This commit is contained in:
@ -11,18 +11,22 @@
|
||||
inputs.pypi-deps-db.follows = "pypi-deps-db";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, mach-nix, ... }:
|
||||
outputs =
|
||||
{ nixpkgs, mach-nix, ... }:
|
||||
let
|
||||
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forAllSystems = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems
|
||||
(system: f system (import nixpkgs { inherit system; }));
|
||||
in rec {
|
||||
defaultApp = forAllSystems (system: _pkgs:
|
||||
mach-nix.lib."${system}".mkPython {
|
||||
requirements = builtins.readFile ./requirements.txt;
|
||||
});
|
||||
devShell = forAllSystems (system: pkgs:
|
||||
pkgs.mkShell { buildInputs = [ defaultApp."${system}" ]; });
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
forAllSystems =
|
||||
f: nixpkgs.lib.genAttrs supportedSystems (system: f system (import nixpkgs { inherit system; }));
|
||||
in
|
||||
rec {
|
||||
defaultApp = forAllSystems (
|
||||
system: _pkgs:
|
||||
mach-nix.lib."${system}".mkPython { requirements = builtins.readFile ./requirements.txt; }
|
||||
);
|
||||
devShell = forAllSystems (system: pkgs: pkgs.mkShell { buildInputs = [ defaultApp."${system}" ]; });
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user