Skip to content

Instantly share code, notes, and snippets.

@chrissound
Created June 2, 2019 16:11
Show Gist options
  • Select an option

  • Save chrissound/60af150ea9d0de4e822a7943defc66c8 to your computer and use it in GitHub Desktop.

Select an option

Save chrissound/60af150ea9d0de4e822a7943defc66c8 to your computer and use it in GitHub Desktop.
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc864" } :
let
myHaskellPackages = nixpkgs.pkgs.haskell.packages.${compiler}.override {
overrides = self: super: rec {
pandoc-include-code = self.callCabal2nix "pandoc-include-code" (./pandoc-include-code) {};
};
};
gitchapter = myHaskellPackages.callCabal2nix "gitchaper" (./.) {};
in
myHaskellPackages.callPackage (gitchapter) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment