This commit adds the rrvsh/text.nix flake to manage text generation. It also removes the old text generation helpers module and updates the README and flake.nix files to use the new flake.
40 lines
1.4 KiB
Nix
40 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
# nixos-unstable provides a binary cache for all packages.
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
# flake-parts lets us define flake modules.
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
# import-tree imports all nix files in a given directory.
|
|
import-tree.url = "github:vic/import-tree";
|
|
# files lets us write text files and automatically add checks for them
|
|
files.url = "github:mightyiam/files";
|
|
# text.nix lets us easily define markdown text to pass to files
|
|
text.url = "github:rrvsh/text.nix";
|
|
# make-shells.<name> creates devShells and checks
|
|
make-shell = {
|
|
url = "github:nicknovitski/make-shell";
|
|
inputs.flake-compat.follows = "dedupe_flake-compat";
|
|
};
|
|
# git-hooks ensures nix flake check is ran before commits
|
|
git-hooks = {
|
|
url = "github:cachix/git-hooks.nix";
|
|
inputs = {
|
|
flake-compat.follows = "dedupe_flake-compat";
|
|
nixpkgs.follows = "nixpkgs";
|
|
gitignore.follows = "dedupe_gitignore";
|
|
};
|
|
};
|
|
|
|
# The following are not used but are here for deduplication.
|
|
dedupe_flake-compat.url = "github:edolstra/flake-compat";
|
|
dedupe_gitignore = {
|
|
url = "github:hercules-ci/gitignore.nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
|
}
|