2023-08-02 17:01:40 +02:00
|
|
|
{
|
|
|
|
description = "My website";
|
|
|
|
|
2023-12-08 22:09:59 +01:00
|
|
|
inputs = {
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-08-02 17:04:41 +02:00
|
|
|
};
|
2023-12-08 22:09:59 +01:00
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
2023-12-09 12:31:15 +01:00
|
|
|
flake-utils.lib.eachDefaultSystem (sys:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${sys};
|
|
|
|
deps = import ./deps.nix { inherit pkgs; };
|
|
|
|
in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
2023-12-09 15:05:40 +01:00
|
|
|
shellHook = ''
|
|
|
|
export EXECJS_RUNTIME=Node
|
|
|
|
'';
|
2023-12-09 12:31:15 +01:00
|
|
|
packages = deps;
|
|
|
|
};
|
|
|
|
packages.default = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "rachel.cafe";
|
|
|
|
buildInputs = deps;
|
|
|
|
src = ./.;
|
|
|
|
buildPhase = ''
|
2023-12-09 15:05:40 +01:00
|
|
|
EXECJS_RUNTIME=Node JEKYLL_ENV=production jekyll build -d $out
|
2023-12-09 12:31:15 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
});
|
2023-08-02 17:01:40 +02:00
|
|
|
}
|