From 4e710decb7e5820f7e84c3b56ad079b1e156a02a Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 22 Jun 2024 12:02:35 -0500 Subject: [PATCH] python3Packages.amaranth-boards: fix fetchFromGitHub hash stability --- pkgs/development/python-modules/amaranth-boards/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/amaranth-boards/default.nix b/pkgs/development/python-modules/amaranth-boards/default.nix index 0d21b69cdef6..6007c138c10a 100644 --- a/pkgs/development/python-modules/amaranth-boards/default.nix +++ b/pkgs/development/python-modules/amaranth-boards/default.nix @@ -18,7 +18,9 @@ buildPythonPackage rec { owner = "amaranth-lang"; repo = "amaranth-boards"; rev = "170675812b71ee722bcf8ccdb88409a9ad97ffe2"; - hash = "sha256-dwZCKMJnEY9RjzkcJ9r3TEC7W+Wfi/P7Hjl4/d60/qo="; + # these files change depending on git branch status + postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes"; + hash = "sha256-qaRPVSBaIpxwYSGoeLv9ii9OUyM6qhZsY6Azy2UrVRQ="; }; nativeBuildInputs = [