diff options
author | Ben Sima <ben@bsima.me> | 2019-01-21 15:46:03 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-01-21 15:46:03 -0800 |
commit | 9f60de28de44ea01da25b4cf1305fb63962effd0 (patch) | |
tree | 05f0a0c61b829d2f763eac24fe5f51ec846aa410 |
Init
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Main.hs | 4 | ||||
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | biz.nix | 23 | ||||
-rw-r--r-- | biz.org | 13 | ||||
-rw-r--r-- | default.nix | 2 | ||||
-rw-r--r-- | pkgs.nix | 5 | ||||
-rw-r--r-- | shell.nix | 5 |
8 files changed, 67 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4afc410 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +*.exe +*.hi
\ No newline at end of file @@ -0,0 +1,4 @@ +module Main where + +main :: IO () +main = putStrLn "Hello World" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a815cc7 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +biz.exe: Main.hs + ghc -O -i. -o $@ $< + +tags: TAGS + +TAGS: FORCE + hasktags -b -c . + +clean: FORCE + rm -f *.o *.exe *.hi + +.PHONY: FORCE @@ -0,0 +1,23 @@ +{ stdenv +, mkDerivation +, base +}: + +mkDerivation { + pname = "biz"; + 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; +} @@ -0,0 +1,13 @@ +* Influenced by books +:PROPERTIES: +:ID: 06f115e1-8938-499c-9ef5-758e907209d7 +:END: +** TODO Make a one-page test site +:PROPERTIES: +:ID: 5dd0656e-4e87-4b63-886b-3f95de2504de +:END: +List recommended books by: +- [ ] Steve Jobs +- [ ] Obama +- [ ] Warren Buffet +- [ ] Michael Jordan (or other sports icon) diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..4a13943 --- /dev/null +++ b/default.nix @@ -0,0 +1,2 @@ +{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc863" }: +nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./biz.nix { } diff --git a/pkgs.nix b/pkgs.nix new file mode 100644 index 0000000..b87407a --- /dev/null +++ b/pkgs.nix @@ -0,0 +1,5 @@ +{ + url = "https://github.com/nixos/nixpkgs.git"; + ref = "release-18.09"; + rev = "da81531c1d76b4c24b944f6cf69b7025770662c1"; +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..9707164 --- /dev/null +++ b/shell.nix @@ -0,0 +1,5 @@ +{ nixpkgs ? import (fetchGit (import ./pkgs.nix)) {} +, compiler ? "ghc862" +}: + +(import ./default.nix { inherit nixpkgs compiler; }).env |