nix building

master
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"
- "readme.md"
- "LICENSE"
- "shell.nix"
- "deps.nix"
- "flake.nix"
- "flake.lock"
- "result"
katex:
rendering_options:

View File

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

View File

@ -6,9 +6,20 @@
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys: {
devShells.default = import ./shell.nix {
pkgs = nixpkgs.legacyPackages.${sys};
};
});
flake-utils.lib.eachDefaultSystem (sys:
let 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
'';
};
});
}