Unverified Commit 3039e4d2 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #301911 from SebRut/add-loco-cli

Add loco-cli
parents c1d5b80a 52d32672
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -17829,6 +17829,17 @@
      fingerprint = "0AF6 4C3B 1F12 14B3 8C8C  5786 1FA2 DBE6 7438 7CC3";
    }];
  };
  sebrut = {
    email = "kontakt@sebastian-rutofski.de";
    github = "sebrut";
    githubId = 3962409;
    name = "Sebastian Rutofski";
    keys = [
      {
        fingerprint = "F1D4 8061 2830 3AF6 42DC  3867 C37F 3374 2A95 C547";
      }
    ];
  };
  sebtm = {
    email = "mail@sebastian-sellmeier.de";
    github = "SebTM";
+1606 −0

File added.

Preview size limit exceeded, changes collapsed.

+29 −0
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub, stdenv }:
rustPlatform.buildRustPackage {
  pname = "loco-cli";
  version = "0.2.6";

  src = fetchFromGitHub {
    owner = "loco-rs";
    repo = "loco";
    rev = "51e0362";
    hash = "sha256-ZiAl+Ru2ggLy7RRqQySwKRbWtGesR7ZgREIpHKrJ00Q=";
    sparseCheckout = [ "loco-cli" ];
  };

  cargoLock.lockFile = ./Cargo.lock;

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';

  sourceRoot = "source/loco-cli";

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