diff options
author | Adrian Kummerlaender | 2018-09-27 16:31:21 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-09-27 16:31:21 +0200 |
commit | c467ca2df2759a00edc4b15f81097299771fcd5c (patch) | |
tree | b68b4751b5cac6430b555342e6204a0c8e284578 | |
parent | 8212d5021d82a325cb3e6fa322a2ab16df7ee2ee (diff) | |
download | blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar.gz blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar.bz2 blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar.lz blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar.xz blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.tar.zst blog_content-c467ca2df2759a00edc4b15f81097299771fcd5c.zip |
Add build instructions as Nix derivation
-rw-r--r-- | default.nix | 35 | ||||
-rw-r--r-- | meta.xml | 2 |
2 files changed, 36 insertions, 1 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..f39d20a --- /dev/null +++ b/default.nix @@ -0,0 +1,35 @@ +{ system ? builtins.currentSystem }: + +let + pkgs = import <nixpkgs> { inherit system; }; + mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { }; + +in pkgs.stdenv.mkDerivation { + name = "blog.kummerlaender.eu"; + + src = pkgs.fetchFromGitHub { + owner = "KnairdA"; + repo = "blog.kummerlaender.eu"; + rev = "3ea8a40d20a244ca2084a7654f0c3a41de98ea87"; + sha256 = "1746997rdjv7s8swi22b0aff70vdwmzbnz7h268nb9b6mdwxras0"; + }; + + LANG = "en_US.UTF-8"; + + buildInputs = [ + pkgs.pandoc + pkgs.highlight + mypkgs.katex-wrapper + mypkgs.make-xslt + ]; + + installPhase = '' + cp -r ${./articles} source/00_content/articles + cp -r ${./tags} source/00_content/tags + cp ${./meta.xml} source/00_content/meta.xml + + make-xslt + mkdir $out + cp -Lr target/99_result/* $out + ''; +} @@ -3,7 +3,7 @@ <title>/home/adrian</title> <author>Adrian Kummerländer</author> <description>Adrian Kummerländer's blog on software development, linux and open source</description> - <url>http://localhost:8080</url> + <url>https://blog.kummerlaender.eu</url> <header> <navigation> |