Skip to content

Commit

Permalink
seabios: make reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Feb 24, 2025
1 parent 24c08ed commit 771cb3e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/by-name/se/seabios/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
lib,
acpica-tools,
fetchgit,
fetchzip,
python3,
stdenv,
writeText,
Expand Down Expand Up @@ -36,10 +36,12 @@ stdenv.mkDerivation (finalAttrs: {
pname = "seabios";
version = "1.16.3";

src = fetchgit {
url = "https://git.seabios.org/seabios.git";
rev = "rel-${finalAttrs.version}";
hash = "sha256-hWemj83cxdY8p+Jhkh5GcPvI0Sy5aKYZJCsKDjHTUUk=";
# This was changed to fetchgit in the past as a release tarball wasn't
# available. This caused the build to be non-reproducible due to a missing
# .version file (buildversion.py uses the current date/time instead).
src = fetchzip {
url = "https://seabios.org/downloads/seabios-${finalAttrs.version}.tar.gz";
hash = "sha256-Kf79juWspKumJI9r4BOe2kL/C3DmI7PoKASZBhYNyfo=";
};

outputs = [
Expand Down

0 comments on commit 771cb3e

Please sign in to comment.