diff options
Diffstat (limited to 'ibb')
-rw-r--r-- | ibb/Main.hs | 4 | ||||
-rw-r--r-- | ibb/Makefile | 12 | ||||
-rw-r--r-- | ibb/default.nix | 23 | ||||
-rw-r--r-- | ibb/shell.nix | 5 |
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 |