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";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.8.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-diG5YgaJt3XHd0yzMofaCamKLm9QACtY2DjtMi7ckSA=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoSha256 = "sha256-lGNM1cY1rDlAfrQvfXwy+YGVq8oqTGPVVE2oCq+8Z8o=";
|
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
|
|
|
};
|
|
|
|
}
|