mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 20:25:08 +02:00
docs: Use a nixpkgs patch instead of copy/pasting nixpkgs functions (#1011)
This makes the code more maintainable, as it only depends on our small patch, instead of a large number of internals of nixpkgs.
This commit is contained in:
parent
2294a12b0b
commit
507ff5b142
7 changed files with 97 additions and 251 deletions
|
@ -31,13 +31,12 @@
|
|||
|
||||
perSystem = {
|
||||
pkgs,
|
||||
pkgsUnfree,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
_module.args = {
|
||||
modules = modules pkgs;
|
||||
modulesUnfree = modules pkgsUnfree;
|
||||
rawModules = modules;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,14 +2,11 @@
|
|||
perSystem = {
|
||||
pkgs,
|
||||
config,
|
||||
modulesUnfree,
|
||||
pkgsUnfree,
|
||||
rawModules,
|
||||
...
|
||||
}: {
|
||||
packages = import ../docs {
|
||||
modules = modulesUnfree;
|
||||
pkgs = pkgsUnfree;
|
||||
inherit (pkgs) lib;
|
||||
inherit rawModules pkgs;
|
||||
};
|
||||
|
||||
# Test that all packages build fine when running `nix flake check`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue