2024-04-21 15:54:59 +00:00
|
|
|
{ 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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Loco CLI is a powerful command-line tool designed to streamline the process of generating Loco websites";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://loco.rs";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ sebrut ];
|
|
|
|
};
|
|
|
|
}
|