From 01d99e1a9e0091d3a405dd100197d38c32a27f0e Mon Sep 17 00:00:00 2001 From: Sven Tennie <sven.tennie@gmail.com> Date: Wed, 27 Sep 2023 20:54:24 +0200 Subject: [PATCH] Some shell.nix --- shell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..dfc28ac --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +let + pkgs-unstable = import (builtins.fetchTarball { + # Descriptive name to make the store path easier to identify + name = "nixos-unstable-2023-08-24"; + # Commit hash for nixos-unstable as of 2018-09-12 + url = "https://github.com/nixos/nixpkgs/archive/aa8aa7e2ea35ce655297e8322dc82bf77a31d04b.tar.gz"; + # Hash obtained using `nix-prefetch-url --unpack <url>` + sha256 = "0bbv3y86kfpn02zh5vvdbkmnqyzagzbc1gzpvvlb6qbvgg639bf9"; +}) {}; + pkgs = import <nixpkgs> {}; + hls =pkgs-unstable.haskell-language-server.override { supportedGhcVersions = [ "96" ]; }; +in +pkgs.mkShell { + packages = [ pkgs.haskell.compiler.ghc96 pkgs.cabal-install hls ]; +} -- GitLab