First Post

Posted on April 5, 2020

This is my first post to test things out. Soon I’ll post a blog post about creating this blog.

bar x = x + 5
main = do
  let x = 1
      y = 2
  in case bar x of 1
      True -> print "it's one"
      False -> print "it's not one"
{ stdenv
, glibcLocales
, generator ? import ../generator/release.nix
}:
let ignores = [ "_cache" "_site" "result" ];
in stdenv.mkDerivation rec {
	name = "codygman-blog";
	version = "1";
	src = builtins.filterSource 
		(path: _: builtins.foldl' (acc: el: acc && builtins.baseNameOf path != el) true ignores)
		./.;
	phases = "unpackPhase buildPhase";
	buildInputs = [ generator glibcLocales ];
	buildPhase = ''
		export LANG=en_US.UTF-8
		chmod -R u+w *
		site rebuild
		mkdir $out
		cp -r _site/* $out
	'';

	meta = {
		license = stdenv.lib.licenses.gpl3;
	};
}