added just file for convenience
This commit is contained in:
parent
1957733d3c
commit
48c9ea8a03
2 changed files with 61 additions and 14 deletions
44
flake.nix
44
flake.nix
|
|
@ -11,26 +11,42 @@
|
|||
};
|
||||
|
||||
# Flake outputs that other flakes can use
|
||||
outputs = { self, flake-schemas, nixpkgs }:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
flake-schemas,
|
||||
nixpkgs,
|
||||
}:
|
||||
let
|
||||
# Helpers for producing system-specific outputs
|
||||
supportedSystems = [ "x86_64-linux" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in {
|
||||
forEachSupportedSystem =
|
||||
f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (
|
||||
system:
|
||||
f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
# Schemas tell Nix about the structure of your flake's outputs
|
||||
schemas = flake-schemas.schemas;
|
||||
|
||||
# Development environments
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
# Pinned packages available in the environment
|
||||
packages = with pkgs; [
|
||||
go_1_23
|
||||
nixpkgs-fmt
|
||||
];
|
||||
};
|
||||
});
|
||||
devShells = forEachSupportedSystem (
|
||||
{ pkgs }:
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
# Pinned packages available in the environment
|
||||
packages = with pkgs; [
|
||||
just
|
||||
gcc
|
||||
go_1_23
|
||||
nixpkgs-fmt
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue