Unverified Commit ee656eb8 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

loco-cli: 0.2.6 -> 0.2.9 (#346745)

parents cf9b7323 bfff467c
Loading
Loading
Loading
Loading
+0 −1606

File deleted.

Preview size limit exceeded, changes collapsed.

+16 −18
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub }:
{
  lib,
  rustPlatform,
  fetchCrate,
}:
rustPlatform.buildRustPackage rec {
  pname = "loco-cli";
  version = "0.2.6";
  version = "0.2.9";

  src = fetchFromGitHub {
    owner = "loco-rs";
    repo = "loco";
    rev = "51e0362";
    hash = "sha256-ZiAl+Ru2ggLy7RRqQySwKRbWtGesR7ZgREIpHKrJ00Q=";
    sparseCheckout = [ "loco-cli" ];
  src = fetchCrate {
    inherit pname version;
    hash = "sha256-AhL+k5XEf8m1pyOECTlPwALUG/ELJeACfV2kulxlzaA=";
  };

  cargoLock.lockFile = ./Cargo.lock;
  cargoHash = "sha256-BtunTti1cPbG1Qiv39tLdbXHM413UzsCckyqL5CJEUA=";

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';
  #Skip trycmd integration tests
  checkFlags = [ "--skip=cli_tests" ];

  sourceRoot = "${src.name}/loco-cli";

  meta = with lib; {
    mainProgram = "loco";
  meta = {
    description = "Loco CLI is a powerful command-line tool designed to streamline the process of generating Loco websites";
    homepage = "https://loco.rs";
    changelog = "https://github.com/loco-rs/loco/blob/master/CHANGELOG.md";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ sebrut ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ sebrut ];
    mainProgram = "loco";
  };
}