Skip to content

Instantly share code, notes, and snippets.

@jD91mZM2
Created August 19, 2018 09:11
Show Gist options
  • Save jD91mZM2/1fc433fba33752d078060b2732b3654c to your computer and use it in GitHub Desktop.
Save jD91mZM2/1fc433fba33752d078060b2732b3654c to your computer and use it in GitHub Desktop.
let
overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
in
with import <nixpkgs> { overlays = [ overlay ]; };
let
buildRustPackage = rustPlatform.buildRustPackage.override {
rust = latest.rustChannels.nightly;
};
in buildRustPackage {
name = "nix-lsp";
src = builtins.filterSource(path: _type: path != (toString ./target)) ./.;
cargoSha256 = "0l1bmj9lckv81biff8z1nbq5j5n2p4mikbnjn67szkvk4kjw3sg9";
}
patching sources
configuring
building
Running cargo build --release
error: failed to load source for a dependency on `rnix`
Caused by:
Unable to update https://gitlab.com/jD91mZM2/rnix.git?branch=errors#9aeb53e6
Caused by:
failed to open: /homeless-shelter/.cargo/git/.cargo-lock-git
Caused by:
Permission denied (os error 13)
builder for '/nix/store/fzfd6f7p8yax8p2qhfn6anypfj8qaxkp-nix-lsp.drv' failed with exit code 101
error: build of '/nix/store/fzfd6f7p8yax8p2qhfn6anypfj8qaxkp-nix-lsp.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment