forked from mirrors/nixpkgs
book-summary: init at 0.2.1
This commit is contained in:
parent
b9f18d6b4c
commit
c0887cc1e8
35
pkgs/tools/text/book-summary/default.nix
Normal file
35
pkgs/tools/text/book-summary/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "book-summary";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dvogt23";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1dawddkpyasy22biqz35c912xqmwcx6ihpqp6cnikbdzv8ni8adr";
|
||||
};
|
||||
|
||||
cargoPatches = [
|
||||
# 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; {
|
||||
description = "Book auto-summary for gitbook and mdBook";
|
||||
homepage = "https://github.com/dvogt23/book-summary";
|
||||
license = licenses.mit;
|
||||
maintainers = with teams; iog.members;
|
||||
};
|
||||
}
|
|
@ -2686,6 +2686,8 @@ with pkgs;
|
|||
|
||||
boringtun = callPackage ../tools/networking/boringtun { };
|
||||
|
||||
book-summary = callPackage ../tools/text/book-summary { };
|
||||
|
||||
bookstack = callPackage ../servers/web-apps/bookstack { };
|
||||
|
||||
# Upstream recommends qt5.12 and it doesn't build with qt5.15
|
||||
|
|
Loading…
Reference in a new issue