2021-07-11 16:54:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2021-06-21 11:52:56 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cobalt";
|
2023-06-04 09:57:13 +00:00
|
|
|
version = "0.18.5";
|
2021-06-21 11:52:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cobalt-org";
|
|
|
|
repo = "cobalt.rs";
|
|
|
|
rev = "v${version}";
|
2023-06-04 09:57:13 +00:00
|
|
|
sha256 = "sha256-Y1rWKoh4cjLOvBJy4bXIHsvGtLmTu9n0aqf6PdflH6E=";
|
2021-06-21 11:52:56 +00:00
|
|
|
};
|
|
|
|
|
2023-06-04 09:57:13 +00:00
|
|
|
cargoHash = "sha256-r0nxsDcdXNiZn9dVMTOAxlI/kd0nZFh7JvB2JYDR2aw=";
|
2021-06-21 11:52:56 +00:00
|
|
|
|
2021-07-11 16:54:13 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2021-06-21 11:52:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Static site generator written in Rust";
|
|
|
|
homepage = "https://github.com/cobalt-org/cobalt.rs/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ethancedwards8 ];
|
2021-07-11 16:54:13 +00:00
|
|
|
platforms = platforms.unix;
|
2021-06-21 11:52:56 +00:00
|
|
|
};
|
|
|
|
}
|