2022-08-05 10:53:43 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2022-09-18 01:37:34 +00:00
|
|
|
, fetchCrate
|
2022-08-05 10:53:43 +00:00
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2022-11-28 21:32:43 +00:00
|
|
|
, stdenv
|
2022-08-21 01:17:27 +00:00
|
|
|
, CoreServices
|
|
|
|
, Security
|
2022-08-05 10:53:43 +00:00
|
|
|
}:
|
2022-09-18 01:37:34 +00:00
|
|
|
|
2022-08-05 10:53:43 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zine";
|
2023-02-20 15:41:25 +00:00
|
|
|
version = "0.11.0";
|
2022-08-05 10:53:43 +00:00
|
|
|
|
2022-09-18 01:37:34 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-02-20 15:41:25 +00:00
|
|
|
sha256 = "sha256-koN30s+giX4wOp4i5QtTLE/t1ZJ9mP0K0YfY0kTuDJY=";
|
2022-08-05 10:53:43 +00:00
|
|
|
};
|
|
|
|
|
2023-02-20 15:41:25 +00:00
|
|
|
cargoHash = "sha256-Re/ooEJCRjQSnz1VSzz4uRWx81yOzChBEeH7gedAHJw=";
|
2022-08-05 10:53:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-08-21 01:17:27 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2022-08-05 10:53:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and opinionated tool to build your own magazine";
|
|
|
|
homepage = "https://github.com/zineland/zine";
|
2022-11-28 21:32:43 +00:00
|
|
|
changelog = "https://github.com/zineland/zine/releases/tag/v${version}";
|
2022-08-05 10:53:43 +00:00
|
|
|
license = licenses.asl20;
|
2022-09-18 01:37:34 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2022-08-05 10:53:43 +00:00
|
|
|
};
|
|
|
|
}
|