Skip to content

Instantly share code, notes, and snippets.

@heath

heath/shell.nix Secret

Created November 2, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heath/40b04df97f7badc798a208c2a30b8cd3 to your computer and use it in GitHub Desktop.
Save heath/40b04df97f7badc798a208c2a30b8cd3 to your computer and use it in GitHub Desktop.
{ nixpkgs ? import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/5272327b81ed355bbed5659b8d303cf2979b6953.tar.gz";
sha256 = "0182ys095dfx02vl2a20j1hz92dx3mfgz2a6fhn31bqlp1wa8hlq";
}) {}
}:
let
inherit (nixpkgs) pkgs;
inherit (pkgs) haskellPackages;
haskellDeps = ps: with ps; [
base
bytestring
directory
postgresql-simple
postgresql-simple-migration
text
time
];
ghc = haskellPackages.ghcWithPackages haskellDeps;
nixPackages = [
ghc
haskellPackages.cabal-install
pkgs.ghcid
pkgs.postgresql
];
in
pkgs.stdenv.mkDerivation {
name = "env";
buildInputs = nixPackages;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment