2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2022-09-22 12:36:57 +00:00
|
|
|
, fetchCrate
|
2022-08-12 12:06:08 +00:00
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2022-12-02 08:20:57 +00:00
|
|
|
, stdenv
|
2023-07-15 17:15:38 +00:00
|
|
|
, darwin
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zine";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.16.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-pUoMMgZQ+oDs9Yhc1rQuy9cUWiR800DlIe8wxQjnIis=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-dXq8O0jVpr0xxvLTrsLJbiyyOMXXtEz7OMINqDEfG4U=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and opinionated tool to build your own magazine";
|
|
|
|
homepage = "https://github.com/zineland/zine";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/zineland/zine/releases/tag/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.asl20;
|
2022-09-22 12:36:57 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "zine";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|