blob: 6be9fcc3c84406009368159a2c435a5c1cbc5dcf (
plain) (
tree)
|
|
#
msgid ""
msgstr ""
msgid ""
"let\n"
" pkgsOriginal = import <nixpkgs> {};\n"
" pkgsSrc = pkgsOriginal.fetchzip {\n"
" url = \"https://github.com/NixOS/nixpkgs/archive/18.03.zip\";\n"
" sha256 = \"0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f\";\n"
" };\n"
" pkgs = import (pkgsSrc) {};\n"
" stdenv = pkgs.stdenv;\n"
"\n"
" # Taken from:\n"
" # http://www.cs.yale.edu/homes/lucas.paul/posts/2017-04-10-hakyll-on-nix.html\n"
" websiteBuilder = pkgs.stdenv.mkDerivation {\n"
" name = \"website-builder\";\n"
" src = ./hakyll;\n"
" phases = \"unpackPhase buildPhase\";\n"
" buildInputs = [\n"
" (pkgs.haskellPackages.ghcWithPackages (p: with p; [ hakyll ]))\n"
" ];\n"
" buildPhase = ''\n"
" mkdir -p $out/bin\n"
" ghc -O2 -dynamic --make Main.hs -o $out/bin/generate-site\n"
" '';\n"
" };\n"
"in rec {\n"
" euandrehWebsite = stdenv.mkDerivation rec {\n"
" name = \"euandreh-website\";\n"
" src = ./site;\n"
" phases = \"unpackPhase buildPhase\";\n"
" # version = \"0.1\";\n"
" buildInputs = [ websiteBuilder ];\n"
" buildPhase = ''\n"
" export LOCALE_ARCHIVE=\"${pkgs.glibcLocales}/lib/locale/locale-archive\";\n"
" export LANG=en_US.UTF-8\n"
" generate-site build\n"
"\n"
" mkdir $out\n"
" cp -r _site/* $out\n"
" '';\n"
" };\n"
"}\n"
msgstr ""
msgid "date: 2018-07-25"
msgstr ""
msgid "lang: en"
msgstr ""
msgid "eu_categories: nix"
msgstr ""
msgid "layout: post"
msgstr ""
msgid "title: Nix exps"
msgstr ""
msgid "ref: nix-exps"
msgstr ""
#~ msgid "title: Nix Stuff"
#~ msgstr ""
#~ msgid "layout: pastebin"
#~ msgstr ""
#~ msgid ""
#~ "title: Nix Stuff\n"
#~ "date: 2018-07-25\n"
#~ "layout: pastebin\n"
#~ "lang: en"
#~ msgstr ""
|