nix building
This commit is contained in:
parent
8831fb4f66
commit
a9b9444fc9
|
@ -12,9 +12,10 @@ exclude:
|
|||
- "*.agdai"
|
||||
- "readme.md"
|
||||
- "LICENSE"
|
||||
- "shell.nix"
|
||||
- "deps.nix"
|
||||
- "flake.nix"
|
||||
- "flake.lock"
|
||||
- "result"
|
||||
|
||||
katex:
|
||||
rendering_options:
|
||||
|
|
|
@ -96,10 +96,4 @@ with pkgs; let
|
|||
webrick
|
||||
]);
|
||||
in
|
||||
mkShell {
|
||||
packages = [
|
||||
nodejs
|
||||
];
|
||||
|
||||
inputsFrom = [ rubyEnv ];
|
||||
}
|
||||
rubyEnv.gems
|
17
flake.nix
17
flake.nix
|
@ -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
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user