Skip to content

Instantly share code, notes, and snippets.

@nghamilton
Created October 15, 2019 05:03
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 nghamilton/99a7ec9f43afbfe4ecc641c912625791 to your computer and use it in GitHub Desktop.
Save nghamilton/99a7ec9f43afbfe4ecc641c912625791 to your computer and use it in GitHub Desktop.
{ nixpkgs ? import ../nix/nixpkgs-overlayed.nix }:
let
common = import ../common { inherit nixpkgs; };
frontend = import ../frontend { inherit nixpkgs; };
r = import ../nix/r { inherit nixpkgs; };
overrides = drv: {
buildInputs = drv.buildInputs ++ [r];
};
backend = nixpkgs.pkgs.haskellPackages.callCabal2nix
"backend" ./. { common = common; };
app = (nixpkgs.haskell.lib.dontHaddock backend)
.overrideAttrs overrides;
in
app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment