depot/third_party/nixpkgs/pkgs/by-name/zi/zine/package.nix

50 lines
996 B
Nix

{
lib,
rustPlatform,
fetchCrate,
pkg-config,
openssl,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "zine";
version = "0.16.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-pUoMMgZQ+oDs9Yhc1rQuy9cUWiR800DlIe8wxQjnIis=";
};
cargoHash = "sha256-B0yPTyZ+d+s0Mdgeb23IammuABpEYWvAksyP7d+MEig=";
cargoPatches = [
# fix build with rust 1.80+
./update-time-crate.patch
];
nativeBuildInputs = [
pkg-config
];
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
meta = with lib; {
description = "Simple and opinionated tool to build your own magazine";
homepage = "https://github.com/zineland/zine";
changelog = "https://github.com/zineland/zine/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [
dit7ya
figsoda
];
mainProgram = "zine";
};
}