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-04 19:56:49 -07:00
rev = "be8a0a4a3aee3d31ef082c67cb82b4fea851c099";
sha256 = "11zgx2xp839wfj4qddahs3lanpvnbc2q497l2ibm5831kwxcig3d";
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
}