Last active
April 10, 2020 18:13
-
-
Save nuttycom/7ccf59f1aa0ed4684c5b20b93d6343c0 to your computer and use it in GitHub Desktop.
Basic Haskell-development-oriented config.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
rev = "d5291756487d70bc336e33512a9baf9fa1788faf"; | |
#nvimrev = "9842c4b1076a2f54de5e9a81fd91b2b91b1d051e"; | |
pkgs = import (builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"; }) {}; | |
#nvimpkgs = import (builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/${nvimrev}.tar.gz"; }) {}; | |
custom-hasktags = pkgs.fetchFromGitHub { | |
owner = "MarcWeber"; | |
repo = "hasktags"; | |
rev = "cc133007c45f81e6a584207cf74dcaaf0b090a4d"; | |
sha256 = "0f5ri7abxngvkpv914l57dwl1qyalibyac0rhvy5h9hr3yv7zbzz"; | |
}; | |
custom = { | |
hasktags = pkgs.haskellPackages.callCabal2nix "hasktags" custom-hasktags {}; | |
}; | |
tools = with pkgs; [ | |
awscli | |
aws-okta | |
# bash-completion | |
carnix | |
ctags | |
cabal-install | |
git | |
htop | |
neovim | |
tig | |
tmux | |
tmate | |
]; | |
hs-tools = with pkgs.haskellPackages; [ | |
brittany | |
ghcid | |
custom.hasktags | |
hlint | |
# stack | |
]; | |
hsnix = pkgs.buildEnv { | |
name = "hsnix"; | |
paths = tools ++ hs-tools; | |
}; | |
in | |
{ | |
allowUnfree = true; | |
#allowBroken = true; | |
packageOverrides = super: { inherit hsnix; }; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment