Skip to content

Instantly share code, notes, and snippets.

@shajra
Last active February 26, 2017 02:18
Show Gist options
  • Select an option

  • Save shajra/db3276347b720d6f15aa56a86b530bbb to your computer and use it in GitHub Desktop.

Select an option

Save shajra/db3276347b720d6f15aa56a86b530bbb to your computer and use it in GitHub Desktop.
example of how I manage packages with Nix
{
packageOverrides = super: rec {
/*
haskell = super.haskell // {
compiler = super.haskell.compiler // {
ghc801 = super.stdenv.lib.overrideDerivation super.haskell.compiler.ghc801 (oldAttrs: {
patches = oldAttrs.patches ++ [./ghc.801.patch];
});
};
};
*/
my-packages = [
#haskell.compiler.ghc801
super.cabal2nix
super.cabal-install
super.nix-repl
super.nox
super.patchelf
super.stack
super.haskellPackages.djinn
super.haskellPackages.ghc-events-analyze
super.haskellPackages.ghcid
super.haskellPackages.haskdogs
super.haskell.packages.ghc801.hasktags
super.haskellPackages.hlint
super.haskellPackages.hoogle
super.haskellPackages.pointfree
super.haskellPackages.pointful
super.haskellPackages.stylish-haskell
];
};
}
@shajra

shajra commented Feb 26, 2017

Copy link
Copy Markdown
Author

I put use this file as ~/.nixpkgs/config.nix and then install packages with

$ nix-env -i -A nixpkgs.my-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment