book-summary: switch to fetchCrate to remove patch

figsoda 013d612e dd353758

+5 -17
+5 -17
pkgs/tools/text/book-summary/default.nix
··· 1 { lib 2 , rustPlatform 3 - , fetchFromGitHub 4 - , fetchpatch 5 }: 6 7 rustPlatform.buildRustPackage rec { 8 pname = "book-summary"; 9 version = "0.2.1"; 10 11 - src = fetchFromGitHub { 12 - owner = "dvogt23"; 13 - repo = pname; 14 - rev = version; 15 - sha256 = "1dawddkpyasy22biqz35c912xqmwcx6ihpqp6cnikbdzv8ni8adr"; 16 }; 17 18 - cargoPatches = [ 19 - # add Cargo.lock 20 - # can be removed after https://github.com/dvogt23/book-summary/pull/23 gets merged 21 - (fetchpatch { 22 - url = "https://github.com/dvogt23/book-summary/commit/9d941a57db5cd2fd0e9813230d69eb1d166a48f8.patch"; 23 - sha256 = "sha256-91dwJKdaLukxVZHA3RH1rxj45U/+mabFTflBaLd2rK8="; 24 - }) 25 - ]; 26 - 27 - cargoSha256 = "sha256-chuEzYUfZC/ZdWIUEmAXJAnXG2s8mCcNs6cuq8Lh5PQ="; 28 29 meta = with lib; { 30 description = "Book auto-summary for gitbook and mdBook";
··· 1 { lib 2 , rustPlatform 3 + , fetchCrate 4 }: 5 6 rustPlatform.buildRustPackage rec { 7 pname = "book-summary"; 8 version = "0.2.1"; 9 10 + src = fetchCrate { 11 + inherit pname version; 12 + hash = "sha256-dxM6bqgHp4IaG03NriHvoT3al2u5Sz/I5ajlgzpjG1c="; 13 }; 14 15 + cargoHash = "sha256-QwydecdQaxvh6vWZvO30zgvvgUT6T5dvGRSmcuTUJmc="; 16 17 meta = with lib; { 18 description = "Book auto-summary for gitbook and mdBook";