Merge pull request #218383 from figsoda/book-summary

This commit is contained in:
figsoda 2023-03-02 09:49:43 -05:00 committed by GitHub
commit 3793d20049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,30 +1,18 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchCrate
, fetchpatch
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "book-summary"; pname = "book-summary";
version = "0.2.1"; version = "0.2.1";
src = fetchFromGitHub { src = fetchCrate {
owner = "dvogt23"; inherit pname version;
repo = pname; hash = "sha256-dxM6bqgHp4IaG03NriHvoT3al2u5Sz/I5ajlgzpjG1c=";
rev = version;
sha256 = "1dawddkpyasy22biqz35c912xqmwcx6ihpqp6cnikbdzv8ni8adr";
}; };
cargoPatches = [ cargoHash = "sha256-QwydecdQaxvh6vWZvO30zgvvgUT6T5dvGRSmcuTUJmc=";
# add Cargo.lock
# can be removed after https://github.com/dvogt23/book-summary/pull/23 gets merged
(fetchpatch {
url = "https://github.com/dvogt23/book-summary/commit/9d941a57db5cd2fd0e9813230d69eb1d166a48f8.patch";
sha256 = "sha256-91dwJKdaLukxVZHA3RH1rxj45U/+mabFTflBaLd2rK8=";
})
];
cargoSha256 = "sha256-chuEzYUfZC/ZdWIUEmAXJAnXG2s8mCcNs6cuq8Lh5PQ=";
meta = with lib; { meta = with lib; {
description = "Book auto-summary for gitbook and mdBook"; description = "Book auto-summary for gitbook and mdBook";