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
|
2022-09-22 12:36:57 +00:00
|
|
|
, stdenv
|
2022-08-12 12:06:08 +00:00
|
|
|
, openssl
|
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";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.7.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-teLx21vA4b+ft4zZqou4EiTHhh9Foq2Vukmk4z0pWUM=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
cargoSha256 = "sha256-OaA090pvJ6rc29wcsUTiuV4/VY/oDDEOGo94Ol31OzI=";
|
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";
|
|
|
|
license = licenses.asl20;
|
2022-09-22 12:36:57 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|