msfjarvis.dev/flake.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-16 17:27:38 +05:30
{
description = "The source behind msfjarvis.dev";
inputs = {
devshell.url = "github:numtide/devshell/master";
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
imagemagick
nodejs-16_x
yarn
];
2022-11-17 02:04:13 +05:30
commands = [
{
name = "dev";
category = "development";
command = "${pkgs.yarn}/bin/yarn run dev";
}
{
name = "build";
category = "deployment";
command = "${pkgs.yarn}/bin/yarn run build";
}
];
2022-11-16 17:27:38 +05:30
};
});
}