3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/zine/default.nix
Theodore Ni b3b1dd0e38
zine: add missing Darwin frameworks (#187659)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-08-21 03:17:27 +02:00

39 lines
865 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "zine";
version = "0.6.0";
src = fetchFromGitHub {
owner = "zineland";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Pd/UAg6O9bOvrdvbY46Vf8cxFzjonEwcwPaaW59vH6E=";
};
cargoPatches = [ ./Cargo.lock.patch ]; # Repo does not provide Cargo.lock
cargoSha256 = "sha256-qpzBDyNSZblmdimnnL4T/wS+6EXpduJ1U2+bfxM7piM=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
meta = with lib; {
description = "A simple and opinionated tool to build your own magazine";
homepage = "https://github.com/zineland/zine";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}