From 54dfcae99bb8e57ae46c43e81607315e8228bd04 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 22 Jun 2024 11:56:55 -0500 Subject: [PATCH] python3Packages.amaranth-boards: fix fetchFromGitHub hash stability PR to fix: https://github.com/amaranth-lang/amaranth-boards/pull/246 --- 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 3e9548bfe5b6..a010d3570b7c 100644 --- a/pkgs/development/python-modules/amaranth-boards/default.nix +++ b/pkgs/development/python-modules/amaranth-boards/default.nix @@ -19,7 +19,9 @@ buildPythonPackage rec { owner = "amaranth-lang"; repo = "amaranth-boards"; rev = "aba2300dc83216523e1c98fdb22471cb4bac5027"; - hash = "sha256-IMhNMkOf6dg4Djyi39TDTpU0S3TQM1+e6TBoyiITaos="; + # these files change depending on git branch status + postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes"; + hash = "sha256-jldXyMJtuSGcZKmtwpZBYrR/UBe4ufblPYRYpBmReM8="; }; nativeBuildInputs = [