mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
26 lines
714 B
Nix
26 lines
714 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cobalt";
|
|
version = "0.18.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cobalt-org";
|
|
repo = "cobalt.rs";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Y1rWKoh4cjLOvBJy4bXIHsvGtLmTu9n0aqf6PdflH6E=";
|
|
};
|
|
|
|
cargoHash = "sha256-r0nxsDcdXNiZn9dVMTOAxlI/kd0nZFh7JvB2JYDR2aw=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
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 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|