From a1b44cfdf48019d69713328ac28e12c1789ef21c Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 18 Jan 2025 06:13:13 +0000 Subject: [PATCH] templates: remove `_wrapper` Added in #361, but has been unused since #902 --- templates/_wrapper/README.md | 11 ----------- templates/_wrapper/simple/flake.nix | 15 --------------- 2 files changed, 26 deletions(-) delete mode 100644 templates/_wrapper/README.md delete mode 100644 templates/_wrapper/simple/flake.nix diff --git a/templates/_wrapper/README.md b/templates/_wrapper/README.md deleted file mode 100644 index dd437808d7..0000000000 --- a/templates/_wrapper/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# templates/_wrapper - -This directory contains wrapper flakes for the nixvim templates. -The purpose of the wrappers is to be able to run tests on templates deterministically on the branch or PR that is being worked on. -It does this by overwriting the url of nixvim and other dependencies to a path within this repo. - -It is also used in the github workflows, so that we can always check if the template is working or not - -NOTE: It is important that we do not commit the `flake.lock` files here as that could cause problems with the check once any files are updated outside the wrapper. -That is why we add them to `.gitignore`. -Finally, the `nix flake check` command for templates should be called with the `--no-write-lock-file` flag. diff --git a/templates/_wrapper/simple/flake.nix b/templates/_wrapper/simple/flake.nix deleted file mode 100644 index 985c6cd179..0000000000 --- a/templates/_wrapper/simple/flake.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - inputs = { - nixvim.url = "path:../../.."; - simple = { - url = "path:../../simple"; - inputs = { - nixvim.follows = "nixvim"; - nixpkgs.follows = "nixvim/nixpkgs"; - flake-parts.follows = "nixvim/flake-parts"; - }; - }; - }; - - outputs = inputs: inputs.simple; -}