~aasg/haunted-blog

ref: 3879a21d2b94755cd14850824e1cd16e9591fff7 haunted-blog/default.nix -rw-r--r-- 345 bytes
3879a21d — Aluísio Augusto Silva Gonçalves css: Sort out the site's color scheme 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs ? (import ./channels.nix).nixpkgs { }
, src ? ./.
}:
let
  haunt = ((import ./channels.nix).aasg { inherit pkgs; }).haunt;
  srcTree = pkgs.nix-gitignore.gitignoreSource [ ".git" ] src;
in
pkgs.runCommand "aasg-blog"
{
  nativeBuildInputs = [ haunt ];
  LANG = "C.UTF-8";
} ''
  cd ${srcTree}
  export HAUNT_DESTDIR=$out
  haunt build
''