tvl-depot/services/tazblog/shell.nix
Vincent Ambo 01bad09eed refactor: Introduce new layout with nixpkgs in third_party
This is not the final layout yet, but makes it so that my top-level
attribute set is no longer overlaid into nixpkgs itself.

This is useful for other people who are importing my monorepo.
2019-12-09 02:40:48 +00:00

11 lines
370 B
Nix

{ pkgs ? (import ../../default.nix {}).third_party.nixpkgs }:
let tazblog = import ./tazblog.nix;
depNames = with builtins; filter (
p: hasAttr p pkgs.haskellPackages
) (attrNames (functionArgs tazblog));
ghc = pkgs.ghc.withPackages(p: map (x: p."${x}") depNames);
in pkgs.stdenv.mkDerivation {
name = "shell";
buildInputs = [ ghc pkgs.hlint ];
}