wiki/flake.nix

31 lines
614 B
Nix
Raw Normal View History

2023-03-31 19:43:26 +05:30
{
2023-07-11 23:07:49 +05:30
description = "wiki.adtya.xyz";
2023-03-31 19:43:26 +05:30
inputs = {
2023-10-28 05:01:42 +05:30
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-07-11 23:07:49 +05:30
flake-utils.url = "github:numtide/flake-utils";
2023-03-31 19:43:26 +05:30
};
2023-07-11 23:07:49 +05:30
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
2023-03-31 19:43:26 +05:30
pkgs = import nixpkgs {
2023-07-11 23:07:49 +05:30
inherit system;
2023-03-31 19:43:26 +05:30
};
in
2023-07-11 23:07:49 +05:30
with pkgs; {
formatter = pkgs.alejandra;
devShells.default = mkShell {
buildInputs = [
mdbook
];
};
2023-10-28 05:01:42 +05:30
packages.default = callPackage ./default.nix {};
2023-07-11 23:07:49 +05:30
}
2023-03-31 19:43:26 +05:30
);
}