about summary refs log tree commit diff
path: root/pkgs/by-name/lo/loco-cli/package.nix
blob: f5a6958b276bf775065e020927a615e96a023525 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 ];
  };
}