1{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cobalt";
5 version = "0.18.4";
6
7 src = fetchFromGitHub {
8 owner = "cobalt-org";
9 repo = "cobalt.rs";
10 rev = "v${version}";
11 sha256 = "sha256-O7qFpp7Xr6K82o/KUMP0J5y2B32op+QBGUXo9Q5R5LQ=";
12 };
13
14 cargoHash = "sha256-ZBAF4BqQ+JMZ3Rpg2RxUhhVvPE5pN68qljVl0o2/VNA=";
15
16 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
17
18 meta = with lib; {
19 description = "Static site generator written in Rust";
20 homepage = "https://github.com/cobalt-org/cobalt.rs/";
21 license = licenses.mit;
22 maintainers = with maintainers; [ ethancedwards8 ];
23 platforms = platforms.unix;
24 };
25}