wiki/flake.nix

33 lines
611 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-11-26 19:55:37 +05:30
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-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-11-26 19:55:37 +05:30
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
2023-07-11 23:07:49 +05:30
flake-utils.lib.eachDefaultSystem (
2023-11-26 19:55:37 +05:30
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-11-26 19:55:37 +05:30
with pkgs; {
formatter = nixpkgs-fmt;
devShells.default = mkShell {
buildInputs = [
mdbook
];
};
packages.default = callPackage ./default.nix { };
}
2023-03-31 19:43:26 +05:30
);
}