2021-07-11 17:54:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2021-06-21 12:52:56 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cobalt";
|
|
|
|
version = "0.16.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cobalt-org";
|
|
|
|
repo = "cobalt.rs";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "wSvjPifnA8oc0vVmHBMdsMKzX7Gg6TdbPzIXl/SHqn8=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "27LcoGBI4elt80uQkTwvToOyEmd2+/3ma5Y32OFrJaw=";
|
|
|
|
|
2021-07-11 17:54:13 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2021-06-21 12:52:56 +01: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 17:54:13 +01:00
|
|
|
platforms = platforms.unix;
|
2021-06-21 12:52:56 +01:00
|
|
|
};
|
|
|
|
}
|