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
Raw Normal View History

{ stdenv, hugo, fetchgit, pkgs, nodejs, ruby }:
2020-04-06 16:51:17 -07:00
let
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
2020-05-09 18:16:01 -07:00
rev = "9f73ca29502064c8c944abf35a111e28311049bf";
sha256 = "0zd50a6hp1a4h7p0y6mdcyaq0bsfdmlk2mbm2palzs4vrbm8lk7k";
requiredPackages = import ./required-packages.nix { inherit pkgs nodejs; };
2020-04-06 16:51:17 -07:00
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 ])) ];
2020-04-06 16:51:17 -07:00
}