Add @11ty/eleventy package to dev shell
This commit is contained in:
parent
3ff6d210f0
commit
b0d1441acf
7 changed files with 60 additions and 1 deletions
14
flake.nix
14
flake.nix
|
|
@ -2,6 +2,11 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
eleventy-src = {
|
||||
url = "github:11ty/eleventy";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
@ -15,11 +20,20 @@
|
|||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
eleventy = import ./pkgs/11ty-eleventy.nix {
|
||||
inherit pkgs;
|
||||
src = inputs.eleventy-src;
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.eleventy = eleventy;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
just
|
||||
eleventy
|
||||
prefetch-npm-deps
|
||||
jq
|
||||
curlMinimal
|
||||
];
|
||||
shellHook = "";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue