summaryrefslogtreecommitdiff
path: root/Biz/Bild
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Bild')
-rw-r--r--Biz/Bild/Constants.nix4
-rw-r--r--Biz/Bild/Deps.nix4
-rw-r--r--Biz/Bild/Deps/Haskell.nix5
-rw-r--r--Biz/Bild/ShellHook.sh3
-rw-r--r--Biz/Bild/Sources.json10
5 files changed, 18 insertions, 8 deletions
diff --git a/Biz/Bild/Constants.nix b/Biz/Bild/Constants.nix
new file mode 100644
index 0000000..652e022
--- /dev/null
+++ b/Biz/Bild/Constants.nix
@@ -0,0 +1,4 @@
+{
+ ghcCompiler = "ghc8104";
+ ghcjsCompiler = "ghcjs86";
+}
diff --git a/Biz/Bild/Deps.nix b/Biz/Bild/Deps.nix
index 946a834..4f16250 100644
--- a/Biz/Bild/Deps.nix
+++ b/Biz/Bild/Deps.nix
@@ -1,16 +1,16 @@
self: super:
+with import ./Constants.nix;
let
buildCabal = sel: name:
sel.callCabal2nix name super.sources.${name} {};
buildCabalSubdir = sel: {name, src ? super.sources.${name}, subdir ? name}:
sel.callCabal2nix name (src + "/${subdir}") {};
- ghc = "ghc884";
in rec
{
haskell = super.haskell // {
packages = super.haskell.packages // {
- "${ghc}" = super.haskell.packages."${ghc}".override (old: {
+ "${ghcCompiler}" = super.haskell.packages."${ghcCompiler}".override (old: {
overrides = with super.pkgs.haskell.lib; sel: sup:
super.overridePinnedDeps (buildCabal sel) // {
acid-state = dontCheck sup.acid-state; # mac: "too many open files"
diff --git a/Biz/Bild/Deps/Haskell.nix b/Biz/Bild/Deps/Haskell.nix
index 8dfcc82..bbc8ac4 100644
--- a/Biz/Bild/Deps/Haskell.nix
+++ b/Biz/Bild/Deps/Haskell.nix
@@ -1,4 +1,9 @@
hpkgs:
+
+# This is the global set of Haskell packages which gets deployed to Hoogle, and
+# is used to create the global 'nix-shell' environment. Eventually, bild should
+# create the environment for me.
+
with hpkgs;
[
MonadRandom
diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh
index 11954a7..d402755 100644
--- a/Biz/Bild/ShellHook.sh
+++ b/Biz/Bild/ShellHook.sh
@@ -29,7 +29,8 @@ alias tree="tree -I _ -F"
rm -f $BIZ_ROOT/.git/hooks/{post-checkout,post-merge,pre-commit}
ln -s $BIZ_ROOT/Biz/Ide/post-checkout $BIZ_ROOT/.git/hooks/post-checkout
ln -s $BIZ_ROOT/Biz/Ide/post-merge $BIZ_ROOT/.git/hooks/post-merge
-ln -s $BIZ_ROOT/Biz/Lint.py $BIZ_ROOT/.git/hooks/pre-commit
+ln -s $BIZ_ROOT/Biz/Ide/pre-commit $BIZ_ROOT/.git/hooks/pre-commit
+ln -s $BIZ_ROOT/Biz/Ide/pre-push $BIZ_ROOT/.git/hooks/pre-push
function deps() {
niv --sources-file $BIZ_ROOT/Biz/Bild/Sources.json $@
diff --git a/Biz/Bild/Sources.json b/Biz/Bild/Sources.json
index f513c5d..0b2ab61 100644
--- a/Biz/Bild/Sources.json
+++ b/Biz/Bild/Sources.json
@@ -26,15 +26,15 @@
"version": "cc7729b1b42a79e261091ff7835f7fc2a7ae3cee"
},
"docopt": {
- "branch": "monad-fail",
+ "branch": "master",
"description": "A command-line interface description language and parser that will make you smile",
"homepage": "http://docopt.org/",
- "owner": "gelisam",
+ "owner": "docopt",
"repo": "docopt.hs",
- "rev": "16dc7bc596c0ea4fa4466b12f474b1abfa72c885",
- "sha256": "1m15zhm1b9sn7ihkxxavbgaihaybmpsrhx26pn1wyng9dh8vsp8b",
+ "rev": "cdd32227eaff46fb57330ced96d5c290cbd9e035",
+ "sha256": "1nfbm7fpmk522n58d52m44y86a7z4nm6gc3m3gc1hb3wac6vmffc",
"type": "tarball",
- "url": "https://github.com/gelisam/docopt.hs/archive/16dc7bc596c0ea4fa4466b12f474b1abfa72c885.tar.gz",
+ "url": "https://github.com/docopt/docopt.hs/archive/cdd32227eaff46fb57330ced96d5c290cbd9e035.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"ghc-exactprint": {