From 87b3b3e064305977f0425f3af8d9fd24ff34c9e5 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 22 Jun 2024 12:08:32 -0500 Subject: [PATCH] python3Packages.amaranth-soc: fix fetchFromGitHub hash stability --- pkgs/development/python-modules/amaranth-soc/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/amaranth-soc/default.nix b/pkgs/development/python-modules/amaranth-soc/default.nix index 685d63414ec5a..af584d228f28b 100644 --- a/pkgs/development/python-modules/amaranth-soc/default.nix +++ b/pkgs/development/python-modules/amaranth-soc/default.nix @@ -16,7 +16,9 @@ buildPythonPackage rec { owner = "amaranth-lang"; repo = "amaranth-soc"; rev = "cce8a79a37498f4d5900be21a295ba77e51e6c9d"; - sha256 = "sha256-hfkJaqICuy3iSTwLM9lbUPvSMDBLW8GdxqswyAOsowo="; + # these files change depending on git branch status + postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes"; + sha256 = "sha256-QElpfjlBsOmUk9i6sRPvf3GEvDLssKUjgfFfsabiCTI="; }; nativeBuildInputs = [ setuptools-scm ];