website/flake.nix

31 lines
728 B
Nix
Raw Normal View History

2024-11-09 18:07:47 -06:00
{
description = "Elm Environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-11-10 22:55:49 -06:00
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
2024-12-05 02:26:48 -06:00
haskell-flake.url = "github:srid/haskell-flake";
2024-11-09 18:07:47 -06:00
};
outputs = inputs @ {
flake-parts,
self,
...
}: let
system = "x86_64-linux";
in
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
./parts
2024-12-05 02:26:48 -06:00
inputs.haskell-flake.flakeModule
2024-11-09 18:07:47 -06:00
];
systems = [system];
2024-11-10 22:55:49 -06:00
perSystem = {pkgs, ...}: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
};
_module.args.pkgs-stable = import inputs.nixpkgs-stable {
inherit system;
};
};
2024-11-09 18:07:47 -06:00
};
}