summaryrefslogtreecommitdiff
path: root/ibb
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-01-21 16:09:56 -0800
committerBen Sima <ben@bsima.me>2019-01-21 16:09:56 -0800
commit98d33b9a533bd1d84ad44746c22cbd3db68fc492 (patch)
tree3677b6dd9616560ed89b1e363a5b306300088fa3 /ibb
parent9f60de28de44ea01da25b4cf1305fb63962effd0 (diff)
add ibb
Diffstat (limited to 'ibb')
-rw-r--r--ibb/Main.hs4
-rw-r--r--ibb/Makefile12
-rw-r--r--ibb/default.nix23
-rw-r--r--ibb/shell.nix5
4 files changed, 44 insertions, 0 deletions
diff --git a/ibb/Main.hs b/ibb/Main.hs
new file mode 100644
index 0000000..e552769
--- /dev/null
+++ b/ibb/Main.hs
@@ -0,0 +1,4 @@
+module Main where
+
+main :: IO ()
+main = putStrLn "Hello World"
diff --git a/ibb/Makefile b/ibb/Makefile
new file mode 100644
index 0000000..f51c298
--- /dev/null
+++ b/ibb/Makefile
@@ -0,0 +1,12 @@
+ibb.exe: Main.hs
+ ghc -O -i. -o $@ $<
+
+tags: TAGS
+
+TAGS: FORCE
+ hasktags -b -c .
+
+clean: FORCE
+ rm -f *.o *.exe *.hi
+
+.PHONY: FORCE
diff --git a/ibb/default.nix b/ibb/default.nix
new file mode 100644
index 0000000..4384001
--- /dev/null
+++ b/ibb/default.nix
@@ -0,0 +1,23 @@
+{ stdenv
+, mkDerivation
+, base
+}:
+
+mkDerivation {
+ pname = "ibb";
+ version = "0";
+ src = ./.;
+ isExecutable = true;
+ libraryHaskellDepends = [
+ base
+ ];
+ executableHaskellDepends = [
+ base
+ ];
+ testHaskellDepends = [
+ base
+ ];
+ homepage = "https://git.sr.ht/~ben/biz";
+ description = "biz";
+ license = stdenv.lib.licenses.bsd3;
+}
diff --git a/ibb/shell.nix b/ibb/shell.nix
new file mode 100644
index 0000000..b29c3ae
--- /dev/null
+++ b/ibb/shell.nix
@@ -0,0 +1,5 @@
+{ nixpkgs ? import (fetchGit (import ../pkgs.nix)) {}
+, compiler ? "ghc862"
+}:
+let ibb = nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./default.nix {};
+in ibb.env