Unverified Commit fa27a499 authored by dish's avatar dish Committed by GitHub
Browse files

lux-cli: 0.13.3 -> 0.15.1 (#434124)

parents d757bad6 8548e0d0
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  lib,
  libgit2,
  libgpg-error,
  luajit,
  lua5_4,
  makeWrapper,
  nix,
  openssl,
@@ -17,18 +17,18 @@
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "lux-cli";

  version = "0.13.3";
  version = "0.15.1";

  src = fetchFromGitHub {
    owner = "nvim-neorocks";
    repo = "lux";
    tag = "v${finalAttrs.version}";
    hash = "sha256-RmdxqpmqOs/1a9KmakWAHJUkiQ6I2t4VROiSocRnx84=";
    hash = "sha256-1u0zDGUytuMhqe7NOJeXd1DKch8P7FT02MYgMkX3eMc=";
  };

  buildAndTestSubdir = "lux-cli";

  cargoHash = "sha256-vin86rAmUbHJJuhChZi3ndj57wTCv945sVF6+by6Dlc=";
  cargoHash = "sha256-C84VZfpMua1RrFhTFhWfY2xZAPDtNllkAbdHljlYdZs=";

  nativeInstallCheckInputs = [
    versionCheckHook
@@ -48,7 +48,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
    gpgme
    libgit2
    libgpg-error
    luajit
    lua5_4
    openssl
  ];

@@ -61,7 +61,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
  cargoTestFlags = "--lib"; # Disable impure integration tests

  nativeCheckInputs = [
    luajit
    lua5_4
    nix
  ];

+6 −3
Original line number Diff line number Diff line
@@ -56,14 +56,17 @@ rustPlatform.buildRustPackage rec {
    LUX_SKIP_IMPURE_TESTS = 1; # Disable impure unit tests
  };

  postBuild = ''
  buildPhase = ''
    runHook preBuild
    cargo xtask-${luaFeature} dist
    mkdir -p $out
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    install -D -v target/dist/${luaVersionDir}/* -t $out/${luaVersionDir}
    install -D -v target/dist/lib/pkgconfig/* -t $out/lib/pkgconfig
    cp -r target/dist/share $out
    cp -r target/dist/lib $out
    runHook postInstall
  '';