14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 sha256 = "sha256-XAO3Qg5I2lYZVNx4+Z5jKHRIFdNwBJsUQwJXFb4CbvM=";
25 cargoHash = "sha256-mS8kNkZs8jX99ryG4XkU+U/iWIIcmET2vOfG1YNNZFU=";
28 # Update git2 https://github.com/foriequal0/git-trim/pull/202
30 url = "https://github.com/foriequal0/git-trim/commit/4355cd1d6f605455087c4d7ad16bfb92ffee941f.patch";
31 sha256 = "sha256-C1pX4oe9ZCgvqYTBJeSjMdr0KFyjv2PNVMJDlwCAngY=";
35 OPENSSL_NO_VENDOR = 1;
37 nativeBuildInputs = [ pkg-config ];
39 buildInputs = [ openssl libgit2 ]
40 ++ lib.optionals stdenv.isDarwin [ IOKit CoreFoundation Security ];
43 install -Dm644 -t $out/share/man/man1/ docs/git-trim.1
50 description = "Automatically trims your branches whose tracking remote refs are merged or gone";
51 homepage = "https://github.com/foriequal0/git-trim";
52 license = licenses.mit;
53 maintainers = [ maintainers.marsam ];