This repository has been archived on 2021-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
custom-nix/blog/default.nix

19 lines
646 B
Nix

{ stdenv, hugo, fetchgit, pkgs, nodejs, ruby }:
let
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
rev = "4ede62b39a3dc776350f41bd8c9bab3dfbb779b2";
sha256 = "05lq4j72hngjmag8ann9sqb4ib512vayhp6wivwizhf4c9k1bviz";
requiredPackages = import ./required-packages.nix { inherit pkgs nodejs; };
in
stdenv.mkDerivation {
name = "blog-static";
version = rev;
src = fetchgit {
inherit url rev sha256;
};
builder = ./builder.sh;
converter = ./convert.rb;
buildInputs = [ hugo requiredPackages.katex (ruby.withPackages (ps: [ ps.nokogiri ])) ];
}