about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix b/nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix
index b8f8097d3906..5f4fede287d1 100644
--- a/nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/git-filter-repo/default.nix
@@ -1,5 +1,6 @@
 { lib
 , buildPythonPackage
+, fetchpatch
 , fetchPypi
 , pythonOlder
 , setuptools-scm
@@ -17,6 +18,16 @@ buildPythonPackage rec {
     hash = "sha256-/hdT4Y8L1tPJtXhoyAEa59BWpuurcGcGOWoV71MScl4=";
   };
 
+  patches = [
+    # https://github.com/newren/git-filter-repo/pull/498
+    (fetchpatch {
+      name = "remove-duplicate-script.patch";
+      url = "https://github.com/newren/git-filter-repo/commit/a59e67e7918e577147ca36a70916741be029c878.patch";
+      hash = "sha256-b0QHy9wMWuBWQoptdvLRT+9SRx2u2+11PnzEEB5F0Yo=";
+      stripLen = 1;
+    })
+  ];
+
   nativeBuildInputs = [
     setuptools-scm
   ];