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";
rev = "1746011c1642395ece4b3858e9ff52b7e76f2c18";
sha256 = "0zm8p80sr1zifi2406xr2p20y4dprm3cmfvzwwa0cjj5mpxim6ax";
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
}