From 98d33b9a533bd1d84ad44746c22cbd3db68fc492 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 21 Jan 2019 16:09:56 -0800 Subject: add ibb --- ibb/Main.hs | 4 ++++ ibb/Makefile | 12 ++++++++++++ ibb/default.nix | 23 +++++++++++++++++++++++ ibb/shell.nix | 5 +++++ 4 files changed, 44 insertions(+) create mode 100644 ibb/Main.hs create mode 100644 ibb/Makefile create mode 100644 ibb/default.nix create mode 100644 ibb/shell.nix (limited to 'ibb') 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 -- cgit v1.2.3