nvim-neorocks / rocks

An alternative frontend app for luarocks.org
MIT License
24 stars 1 forks source link

build: add nix dev + build environment + ci builds #1

Closed mrcjkb closed 8 months ago

mrcjkb commented 8 months ago

The obligatory flakeification :smile:

mrcjkb commented 8 months ago

@teto for some reason, the extra buildInputs I add to the devShell (rust-analyzer, rustfmt, ...) aren't available on the PATH. Any idea what could be the issue?

teto commented 8 months ago

I am never too sure about the rules but because it's not a mkShell but the program buildInputs, in which case you need propagatedBuildInputs to propagate to PATH . Maybe if you append .inputDerivation at the end ?

mrcjkb commented 8 months ago

I am never too sure about the rules but because it's not a mkShell but the program buildInputs, in which case you need propagatedBuildInputs to propagate to PATH . Maybe if you append .inputDerivation at the end ?

:thinking: none of it worked. Maybe it's something that rustPlatform.buildRustPackage does... I ended up using mkShell and appending rocks.buildInputs ++ rocks.nativeBuildInputs to the shell's buildInputs. A bit hacky, but it works :shrug:

mrcjkb commented 8 months ago

Oops... forgot to set it to squash...

teto commented 8 months ago

considering the wide usage of this program, feel free to force push if you have git OCD