nix building

This commit is contained in:
Rachel Lambda Samuelsson 2023-12-09 12:31:15 +01:00
parent 8831fb4f66
commit a9b9444fc9
3 changed files with 19 additions and 13 deletions

View File

@ -12,9 +12,10 @@ exclude:
- "*.agdai" - "*.agdai"
- "readme.md" - "readme.md"
- "LICENSE" - "LICENSE"
- "shell.nix" - "deps.nix"
- "flake.nix" - "flake.nix"
- "flake.lock" - "flake.lock"
- "result"
katex: katex:
rendering_options: rendering_options:

View File

@ -96,10 +96,4 @@ with pkgs; let
webrick webrick
]); ]);
in in
mkShell { rubyEnv.gems
packages = [
nodejs
];
inputsFrom = [ rubyEnv ];
}

View File

@ -6,9 +6,20 @@
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys: { flake-utils.lib.eachDefaultSystem (sys:
devShells.default = import ./shell.nix { let pkgs = nixpkgs.legacyPackages.${sys};
pkgs = nixpkgs.legacyPackages.${sys}; deps = import ./deps.nix { inherit pkgs; };
}; in {
}); devShells.default = pkgs.mkShell {
packages = deps;
};
packages.default = pkgs.stdenv.mkDerivation {
name = "rachel.cafe";
buildInputs = deps;
src = ./.;
buildPhase = ''
JEKYLL_ENV=production jekyll build -d $out
'';
};
});
} }