rachel.cafe/flake.nix

29 lines
742 B
Nix
Raw Normal View History

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 {
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 = ''
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
}