at 23.05-pre 40 lines 1.2 kB view raw
1{ lib, rustPlatform, fetchFromGitHub 2, pkg-config, openssl, zlib, curl, libgit2, libssh2 3}: 4 5rustPlatform.buildRustPackage rec { 6 pname = "git-series"; 7 version = "unstable-2019-10-15"; 8 9 src = fetchFromGitHub { 10 owner = "git-series"; 11 repo = "git-series"; 12 rev = "c570a015e15214be46a7fd06ba08526622738e20"; 13 sha256 = "1i0m2b7ma6xvkg95k57gaj1wpc1rfvka6h8jr5hglxmqqbz6cb6w"; 14 }; 15 16 cargoSha256 = "1hmx14z3098c98achgii0jkcm4474iw762rmib77amcsxj73zzdh"; 17 18 nativeBuildInputs = [ pkg-config ]; 19 buildInputs = [ openssl zlib curl libgit2 libssh2 ]; 20 21 LIBGIT2_SYS_USE_PKG_CONFIG = true; 22 LIBSSH2_SYS_USE_PKG_CONFIG = true; 23 24 postInstall = '' 25 install -D "$src/git-series.1" "$out/man/man1/git-series.1" 26 ''; 27 28 meta = with lib; { 29 description = "A tool to help with formatting git patches for review on mailing lists"; 30 longDescription = '' 31 git series tracks changes to a patch series over time. git 32 series also tracks a cover letter for the patch series, 33 formats the series for email, and prepares pull requests. 34 ''; 35 homepage = "https://github.com/git-series/git-series"; 36 37 license = licenses.mit; 38 maintainers = with maintainers; [ edef vmandela ]; 39 }; 40}