Unverified Commit cf4b4282 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

lux-cli: use finalAttrs pattern (#423258)

parents 680c37a9 626f52e7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
  rustPlatform,
  versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "lux-cli";

  version = "0.7.4";
@@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec {
  src = fetchFromGitHub {
    owner = "nvim-neorocks";
    repo = "lux";
    tag = "v0.7.4";
    tag = "v${finalAttrs.version}";
    hash = "sha256-m8GSs2gBw+WzDOBciOQHi7n4923XCd7z1TbfTnfJzUA=";
  };

@@ -33,7 +33,7 @@ rustPlatform.buildRustPackage rec {
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
  versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

@@ -78,7 +78,7 @@ rustPlatform.buildRustPackage rec {
      with first-class support for Nix and Neovim.
    '';
    homepage = "https://nvim-neorocks.github.io/";
    changelog = "https://github.com/nvim-neorocks/lux/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/nvim-neorocks/lux/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [
      mrcjkb
@@ -86,4 +86,4 @@ rustPlatform.buildRustPackage rec {
    platforms = lib.platforms.all;
    mainProgram = "lx";
  };
}
})