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";
|
2024-04-29 10:56:56 +00:00
|
|
|
version = "0.19.3";
|
2021-06-21 11:52:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cobalt-org";
|
|
|
|
repo = "cobalt.rs";
|
|
|
|
rev = "v${version}";
|
2024-04-29 10:56:56 +00:00
|
|
|
sha256 = "sha256-aAhceExz5SENL+FhPHyx8HmaNOWjNsynv81Rj2cS5M8=";
|
2021-06-21 11:52:56 +00:00
|
|
|
};
|
|
|
|
|
2024-04-29 10:56:56 +00:00
|
|
|
cargoHash = "sha256-vw7fGsTSEVO8s1LzilKJN5lGzOfQcms1h7rnTOyE4Kw=";
|
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;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "cobalt";
|
2021-06-21 11:52:56 +00:00
|
|
|
};
|
|
|
|
}
|