Skip to content

Incorrect glrnvim version in Cargo.lock makes build to fail when building with nix #28

@ddrcode

Description

@ddrcode

I've created a nix script to build glrnvim as a nix package, but the build fails due to mismatch in Cargo.lock. I use v1.1.1 release, but the Cargo.lock there refers to v1.1.0. According to nix documentation (here: https://nixos.org/manual/nixpkgs/stable/), "The fetcher will verify that the Cargo.lock file is in sync with the src attribute, and fail the build if not. "

I know this is rather a hermetic problem, specific to nix, but please remember to make sure in the future releases that the Cargo.lock will be in sync with src. As a quick solution I've forked the project and corrected the version in my fork.

If you're interested - here is my nix build script:

{ rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  name = "glrnvim";
  version = "v1.1.1";

  src = fetchFromGitHub {
    owner = "beeender";
    repo = "glrnvim";
    rev = "${version}";
    sha256 = "1nxxyj4nlvp0rm1vzpn1s6if77sb2k443a2g5x498qm8m3av4714";
  };

  cargoSha256 = "1b50kvl144njngnsr8k6kvnhsns97bcasss0b4v1lrkj01cpzwan";
}

If you'd be interested to integrate your project with nix package system or nix os, I'm happy to help.

And on a side note: great work and great idea - I really enjoy using glrnvim!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions