This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77418 from marsam/init-gitAndTools.git-filter-repo
gitAndTools.git-filter-repo: init at 2.24.0
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pkgs/applications/version-management/git-and-tools/git-filter-repo/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, fetchurl, pythonPackages }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "git-filter-repo"; | ||
version = "2.25.0"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/newren/git-filter-repo/releases/download/v${version}/${pname}-${version}.tar.xz"; | ||
sha256 = "1772if8ajaw80dsdw4ic6vjw24dq0b9w87qlkn0iw4b8r9yxp37a"; | ||
}; | ||
|
||
buildInputs = [ pythonPackages.python ]; | ||
|
||
dontBuild = true; | ||
|
||
installPhase = '' | ||
install -Dm755 -t $out/bin git-filter-repo | ||
install -Dm644 -t $out/share/man/man1 Documentation/man1/git-filter-repo.1 | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = "https://github.com/newren/git-filter-repo"; | ||
description = "Quickly rewrite git repository history (filter-branch replacement)"; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.marsam ]; | ||
}; | ||
} |