Skip to content

Add flake.nix for Nix packaging #99

@barrettruth

Description

@barrettruth

Problem

There's currently no way to install pytest-language-server through the Nix ecosystem. The package isn't in nixpkgs, and the repo doesn't have a flake.nix, so Nix users can't consume it as a flake input either.

I wrote a buildRustPackage derivation locally and it builds fine, but two tests fail inside the Nix build sandbox (test_exclude_patterns_in_workspace_scan and test_exclude_patterns_glob_matching in tests/test_config.rs) — they seem to expect fixture files that aren't reachable in the sandboxed environment.

Proposal

Add a flake.nix to the repo that exposes the package as an output. This would let Nix users install it directly as a flake input and would also make a future nixpkgs submission straightforward. If you could also push a nixpkgs submission forward I'd be very grateful.

Happy to open a PR for this if you're interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions