Set up sass
This commit is contained in:
parent
9667e184fb
commit
fd5e0004ce
207 changed files with 1250 additions and 14 deletions
27
flake.nix
27
flake.nix
|
|
@ -10,23 +10,26 @@
|
|||
buildInputs = with pkgs; [
|
||||
nodejs-16_x
|
||||
nodePackages.pnpm
|
||||
sassc
|
||||
entr
|
||||
];
|
||||
in {
|
||||
devShell.${system} = pkgs.mkShell {
|
||||
inherit buildInputs;
|
||||
};
|
||||
|
||||
defaultPackage.${system} = pkgs.stdenv.mkDerivation {
|
||||
name = "arnes.space";
|
||||
src = ./.;
|
||||
inherit buildInputs;
|
||||
buildPhase = ''
|
||||
${pkgs.nodePackages.pnpm}/bin/pnpx @11ty/eleventy --input=content
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r _site/* $out
|
||||
'';
|
||||
};
|
||||
# defaultPackage.${system} = pkgs.stdenv.mkDerivation {
|
||||
# name = "arnes.space";
|
||||
# src = ./.;
|
||||
# inherit buildInputs;
|
||||
# buildPhase = ''
|
||||
# ${pkgs.nodePackages.pnpm}/bin/pnpm install
|
||||
# ${pkgs.nodePackages.pnpm}/bin/pnpm build
|
||||
# '';
|
||||
# installPhase = ''
|
||||
# mkdir $out
|
||||
# cp -r _site/* $out
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue