TDT4258/ex2_haskell/flake.nix

22 lines
448 B
Nix
Raw Permalink Normal View History

2022-12-19 18:06:38 +01:00
{
description = "My haskell project";
inputs.nixpkgs.url = "nixpkgs/nixos-22.05";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
ghc
ghcid
haskell-language-server
hlint
];
shellHook = "export PS1='\\e[1;34m[nix] cache_sim> \\e[0m'";
};
};
}