Merge pull request #147655 from marsam/update-git-filter-repo

git-filter-repo: remove duplicated expression
This commit is contained in:
Mario Rodas 2021-12-01 00:25:08 -05:00 committed by GitHub
commit 193388b14d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 31 deletions

View file

@ -1,28 +0,0 @@
{ lib, stdenv, fetchurl, pythonPackages }:
stdenv.mkDerivation rec {
pname = "git-filter-repo";
version = "2.33.0";
src = fetchurl {
url = "https://github.com/newren/git-filter-repo/releases/download/v${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-e88R2hNLvYKkFx9/soo6t7xNR4/o7Do9lYDku9wy5uk=";
};
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 lib; {
homepage = "https://github.com/newren/git-filter-repo";
description = "Quickly rewrite git repository history (filter-branch replacement)";
license = licenses.mit;
inherit (pythonPackages.python.meta) platforms;
maintainers = [ maintainers.marsam ];
};
}

View file

@ -5632,9 +5632,7 @@ with pkgs;
git-fast-export = callPackage ../applications/version-management/git-and-tools/fast-export { };
git-filter-repo = callPackage ../applications/version-management/git-and-tools/git-filter-repo {
pythonPackages = python3Packages;
};
git-filter-repo = with python3Packages; toPythonApplication git-filter-repo;
git-gone = callPackage ../applications/version-management/git-and-tools/git-gone {
inherit (darwin.apple_sdk.frameworks) Security;