diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 6661b4aa2282..c99ae18ff527 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -30,6 +30,10 @@ let git = appendToName "minimal" gitBase; + git-absorb = callPackage ./git-absorb { + inherit (darwin.apple_sdk.frameworks) Security; + }; + git-appraise = callPackage ./git-appraise {}; git-fame = callPackage ./git-fame {}; diff --git a/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix b/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix new file mode 100644 index 000000000000..17e2bfee40b5 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, rustPlatform, libiconv, Security }: + +rustPlatform.buildRustPackage rec { + name = "git-absorb-${version}"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "tummychow"; + repo = "git-absorb"; + rev = "refs/tags/${version}"; + sha256 = "1dm442lyk7f44bshm2ajync5pzdwvdc5xfpw2lkvjzxflmh5572z"; + }; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]; + + cargoSha256 = "0fvxs09b9x38vp0psvlvbj09myxrhabp95pp3nz7nxsgr7fxflrr"; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "git commit --fixup, but automatic"; + license = [ licenses.bsd3 ]; + maintainers = [ maintainers.marsam ]; + }; +}