blog-static-flake/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 01:51:23 -07:00
rev = "85bd0b6c9c0d588363bfad1d32f8e2fc6d080531";
sha256 = "1xc9k27kirplfxlyclg8w1lzzhkh81hlgmscmiw02nji7f490z8f";
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
}