35 lines
668 B
Nix
35 lines
668 B
Nix
|
{
|
||
|
description = "A very basic flake";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||
|
devenv.url = "github:cachix/devenv";
|
||
|
};
|
||
|
outputs = {
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
devenv,
|
||
|
systems,
|
||
|
...
|
||
|
} @ inputs: let
|
||
|
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
||
|
in {
|
||
|
devShells = forEachSystem (system: let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
in {
|
||
|
default = devenv.lib.mkShell {
|
||
|
inherit inputs pkgs;
|
||
|
modules = [
|
||
|
({
|
||
|
pkgs,
|
||
|
config,
|
||
|
...
|
||
|
}: {
|
||
|
languages.haskell.enable = true;
|
||
|
})
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|