summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..33c3149
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,37 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
+ flake-parts.url = "github:hercules-ci/flake-parts";
+ haskell-flake.url = "github:srid/haskell-flake"; # https://community.flake.parts/haskell-flake
+ };
+ outputs = inputs @ {
+ self,
+ nixpkgs,
+ flake-parts,
+ ...
+ }:
+ flake-parts.lib.mkFlake {inherit inputs;} {
+ systems = nixpkgs.lib.systems.flakeExposed;
+ imports = [inputs.haskell-flake.flakeModule];
+
+ perSystem = {
+ self',
+ pkgs,
+ ...
+ }: {
+ haskellProjects.default = {
+ devShell = {
+ enable = true;
+ tools = hp: {inherit (hp) hakyll;};
+ hlsCheck.enable = true;
+ mkShellArgs = {
+ buildInputs = [pkgs.just];
+ shellHook = "just -l -u";
+ };
+ };
+ };
+
+ packages.default = self'.packages.skiletro; # haskell-flake doesn't set the default package, but you can do it here.
+ };
+ };
+}