Skip to content

Commit

Permalink
marmite: init at 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCroughan committed Dec 25, 2024
1 parent 45b0aee commit 232784e
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/ma/marmite/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
oniguruma,
stdenv,
darwin,
}:

rustPlatform.buildRustPackage rec {
pname = "marmite";
version = "0.2.3";

src = fetchFromGitHub {
owner = "rochacbruno";
repo = "marmite";
rev = version;
hash = "sha256-AblitYe7YDUc2Tg2P7j+wnOjMAhDtieDsbq6B6x+uMs=";
};

cargoHash = "sha256-u8sJS9hvIao+af7IA4vE0eUSx0xmI1Kb5NXyZBrOCIw=";

nativeBuildInputs = [
pkg-config
];

buildInputs =
[
oniguruma
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.CoreServices
];

env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};

meta = {
description = "A Static Site Generator for Blogs";
homepage = "https://github.com/rochacbruno/marmite";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ matthewcroughan ];
mainProgram = "marmite";
};
}

0 comments on commit 232784e

Please sign in to comment.