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-06-21 22:27:32 -07:00
rev = "3f0df8ae0ddbed1a2a258878e73861b96e4122b0";
sha256 = "16xg4d4wkpdc0qynh6jkl6np6x88bdv0aqpkgg4phjq9007nxgjp";
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
}