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
|
2022-08-21 13:32:41 +00:00
|
|
|
, CoreServices
|
|
|
|
, Security
|
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-02-16 17:41:37 +00:00
|
|
|
version = "0.10.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-3xFJ7v/IZQ3yfU0D09sFXV+4XKRau+Mj3BNxkeUjbbU=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cargoHash = "sha256-3Sw/USfGJuf6JGSR3Xkjnmm/UR7NK8rB8St48b4WpIM=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
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 ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|