b3b1dd0e38
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
39 lines
865 B
Nix
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 ];
|
|
};
|
|
}
|