git-filter-repo: remove duplicated expression

This commit is contained in:
Mario Rodas 2021-11-27 04:20:00 +00:00
parent f62e110ae4
commit 3b35310cdc
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

@ -5618,9 +5618,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;