Skip to content

Commit

Permalink
Update shell.nix file based on tutorial (#792)
Browse files Browse the repository at this point in the history
* Update shell.nix file based on tutorial

Signed-off-by: Mihai Maruseac <[email protected]>

* Update shell.nix file based on tutorial

Signed-off-by: Mihai Maruseac <[email protected]>

---------

Signed-off-by: Mihai Maruseac <[email protected]>
  • Loading branch information
mihaimaruseac authored Nov 24, 2023
1 parent 0f7df2e commit ad0e23d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShell {
packages = with pkgs; [
cabal-install
haskell.compiler.ghc925
zlib.dev
];

shellHook = ''
export PS1="[\[\033[01;32m\]nix-shell\[\033[00m\]:\W] \[\033[01;32m\]λ\[\033[00m\] "
'';
Expand Down

0 comments on commit ad0e23d

Please sign in to comment.