Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. { haskellPackages ? (import <nixpkgs> {}).haskellPackages }:
  2.  
  3. let
  4. nixpkgs = import <nixpkgs> {};
  5. in
  6.  
  7. (haskellPackages.buildLocalCabal ./. "hoobuddy").override (old:{
  8. cabal = old.cabal.override {
  9. # self is the final package
  10. # super is the package we are modifying
  11. extension = self: super: {
  12. buildDepends = [
  13. haskellPackages.cabalInstall
  14. haskellPackages.ghcMod
  15. haskellPackages.ghcid
  16. ] ++ super.buildDepends; # Add the build depends of the package
  17. };
  18.  
  19. # I think this probably should be merged with old.extension, but I haven't yet seen
  20. # this done anywere and it shouldn't matter with standard usage.
  21. };
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement