diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..8590f29ab --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig configuration for nixpkgs +# http://EditorConfig.org + +# Top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file, utf-8 charset +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +# Match json/python files, set indent to spaces with width of two +[*.{json,py}] +indent_style = space +indent_size = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..e5daf0d15 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.mypy_cache/ diff --git a/README.md b/README.md index ca02a3355..0dab9f9b2 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,6 @@ option to a path relative to the repository root: } } ``` - ## Git submodules To fetch git submodules in repositories set `submodules`: @@ -212,6 +211,9 @@ To fetch git submodules in repositories set `submodules`: } ``` + ## Contribution guideline @@ -319,3 +328,4 @@ cycles. ## Roadmap - Implement a search to find packages +- Figure out how make it working for NixOS modules diff --git a/nur/update.py b/nur/update.py index 0523f8fbf..14ba1128f 100755 --- a/nur/update.py +++ b/nur/update.py @@ -141,7 +141,7 @@ def prefetch(spec: RepoSpec, def nixpkgs_path() -> str: - cmd = ["nix", "eval", "()"] + cmd = ["nix-instantiate", "--find-file", "nixpkgs"] return subprocess.check_output(cmd).decode("utf-8").strip()