Bloc notes | ghcid & nix


Posted on April 11, 2019 by Alex comments [haskell nix]

default.nix

with import <nixpkgs> {};

let
  drv = haskellPackages.callCabal2nix "myprojectname" ./. {};
in if lib.inNixShell then drv.env.overrideAttrs (old: {
  buildInputs = old.buildInputs ++ [ haskellPackages.ghcid cabal-install ];
}) else drv