Skip to content

Commit

Permalink
builder: take care of release comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 30, 2024
1 parent 05c3605 commit a25c1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pkgs.stdenv.mkDerivation {
'' + lib.optionalString (files != null) ''
# copy files to avoid making etc read-only
cp -r --no-preserve=all ${files} files
'' + lib.optionalString (lib.versionOlder release "19") ''
'' + lib.optionalString (lib.versionOlder release "19" && release != "snapshot") ''
# Hack around broken check for gcc
touch staging_dir/host/.prereq-build
'' + ''
Expand All @@ -115,7 +115,7 @@ pkgs.stdenv.mkDerivation {
zlib unzip bzip2 zstd
ncurses which rsync git file getopt wget
bash perl python3 dtc
] ++ lib.optional (!lib.versionAtLeast release "21" && release != "snapshot") python2;
] ++ lib.optional (lib.versionOlder release "21" && release != "snapshot") python2;


buildFlags = [
Expand Down

0 comments on commit a25c1b6

Please sign in to comment.