nixpkgs/pkgs/by-name/zi/zine/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
955 B
Nix
Raw Normal View History

2022-08-05 10:53:43 +00:00
{ lib
, rustPlatform
, fetchCrate
2022-08-05 10:53:43 +00:00
, pkg-config
, openssl
, stdenv
, darwin
2022-08-05 10:53:43 +00:00
}:
2022-08-05 10:53:43 +00:00
rustPlatform.buildRustPackage rec {
pname = "zine";
version = "0.16.0";
2022-08-05 10:53:43 +00:00
src = fetchCrate {
inherit pname version;
hash = "sha256-pUoMMgZQ+oDs9Yhc1rQuy9cUWiR800DlIe8wxQjnIis=";
2022-08-05 10:53:43 +00:00
};
cargoHash = "sha256-B0yPTyZ+d+s0Mdgeb23IammuABpEYWvAksyP7d+MEig=";
cargoPatches = [
# fix build with rust 1.80+
./update-time-crate.patch
];
2022-08-05 10:53:43 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
2022-08-05 10:53:43 +00:00
meta = with lib; {
description = "Simple and opinionated tool to build your own magazine";
homepage = "https://github.com/zineland/zine";
changelog = "https://github.com/zineland/zine/releases/tag/v${version}";
2022-08-05 10:53:43 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya figsoda ];
2024-02-11 02:19:15 +00:00
mainProgram = "zine";
2022-08-05 10:53:43 +00:00
};
}