msfjarvis.dev/flake.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-16 17:27:38 +05:30
{
description = "The source behind msfjarvis.dev";
inputs = {
2022-11-25 01:30:49 +05:30
devshell = {
url = "github:numtide/devshell/master";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2022-11-16 17:27:38 +05:30
flake-utils.url = "github:numtide/flake-utils/master";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, devshell, flake-utils, nixpkgs, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ devshell.overlay ];
};
in {
devShell = pkgs.devshell.mkShell {
name = "blog-dev-shell";
bash = { interactive = ""; };
packages = with pkgs; [
deno
git
go
hugo
libwebp
2022-11-16 17:27:38 +05:30
nodejs-16_x
yarn
];
2022-11-17 02:04:13 +05:30
commands = [
{
name = "dev";
category = "development";
command = "yarn exec ntl dev";
2022-11-17 19:55:08 +05:30
help = "Run the Hugo development server";
2022-11-17 02:04:13 +05:30
}
{
name = "build";
category = "deployment";
command = "hugo";
2022-11-17 19:55:08 +05:30
help = "Build the site";
2022-11-17 02:04:13 +05:30
}
];
2022-11-16 17:27:38 +05:30
};
});
}