31
haskell/flake.nix
Normal file
31
haskell/flake.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
description = "eulerfunt in haskell";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = github:nixos/nixpkgs/release-22.05;
|
||||
utils.url = github:numtide/flake-utils;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells = with pkgs; rec {
|
||||
default = mkShell {
|
||||
buildInputs = [ ghc ];
|
||||
};
|
||||
withLsp = mkShell {
|
||||
buildInputs = [
|
||||
ghc
|
||||
haskell-language-server
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user