Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushthapa committed May 26, 2023
1 parent db2d045 commit 5ff96ac
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 71 deletions.
6 changes: 6 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Main (main) where

import Distribution.Simple

main :: IO ()
main = defaultMain
89 changes: 26 additions & 63 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
outputs = { self, nixpkgs, flake-utils, haskellNix }:
let
supportedSystems = [
"x86_64-linux" "x86_64-darwin"
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
in
flake-utils.lib.eachSystem supportedSystems (system:
Expand All @@ -31,6 +34,7 @@
# This sets the flake to use the IOG nix cache.
# Nix should ask for permission before using it,
# but remove it here if you do not want it to.
extra-substituters = ["https://cache.iog.io"];
allow-import-from-derivation = "true";
};
}
12 changes: 5 additions & 7 deletions nix/hix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
# ]);

# Tools to include in the development shell
shell = {
tools = {
cabal = "latest";
hlint = "3.4.1";
haskell-language-server = { version = "1.8.0.0"; index-state = "2022-12-17T00:00:00Z"; };
};
};
shell.tools.cabal = "latest";
shell.tools.hlint = "3.4.1";
shell.tools.haskell-language-server = { version = "1.8.0.0"; index-state = "2022-12-17T00:00:00Z"; };

shell.buildInputs = with pkgs; [zlib zlib.dev zlib.out];
}

0 comments on commit 5ff96ac

Please sign in to comment.