2021-07-14 22:03:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cobalt";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.19.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cobalt-org";
|
|
|
|
repo = "cobalt.rs";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-cW9Pj4dTBZ0UmHvrWpx0SREBBaEIb2aaX2cdCUdlFLw=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-/xkZuGyinQdUGWix/SRtJMJ5nmpXJu39/LxJoTHnT4Q=";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2021-06-28 23:13:55 +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-14 22:03:04 +00:00
|
|
|
platforms = platforms.unix;
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|