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-03-04 12:14:45 +00:00
|
|
|
version = "0.11.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-iva66tN7pMW0LAvhTbL0Tmsvsdq1+96VciTlaNoVywI=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
cargoHash = "sha256-xAA11Og5odn8eNbFNKiRUqLG/MLWPw1WSeNR9zGHs0U=";
|
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
|
|
|
};
|
|
|
|
}
|