fix: Fix missing dependencies in the build

This commit is contained in:
PapaTutuWawa 2023-01-25 19:28:00 +01:00
parent 99b7428dd0
commit b98f7cb52c
2 changed files with 11 additions and 4 deletions

View File

@ -10,6 +10,9 @@
inherit system;
};
jekyllPackages = with pkgs; [
rubyPackages.jekyll-feed rubyPackages.jekyll-seo-tag
];
tailwindWithTypography = (pkgs.nodePackages.tailwindcss.overrideAttrs (old: {
plugins = [
pkgs.nodePackages."@tailwindcss/typography"
@ -20,14 +23,14 @@
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
tailwindWithTypography
jekyll rubyPackages.jekyll-feed rubyPackages.jekyll-seo-tag
jekyll
imagemagick
];
] ++ jekyllPackages;
};
packages = {
website = pkgs.callPackage ./pkgs/website.nix {
inherit tailwindWithTypography;
inherit tailwindWithTypography jekyllPackages;
};
};
});

View File

@ -1,5 +1,5 @@
{
jekyll, tailwindWithTypography
jekyll, jekyllPackages, tailwindWithTypography
, stdenv
}:
@ -8,6 +8,10 @@ stdenv.mkDerivation {
version = "0.1.0";
src = ./../.;
buildInputs = [
jekyll jekyllPackages tailwindWithTypography
];
buildPhase = ''
${jekyll}/bin/jekyll build --future
cp -r ./assets _site/assets