Skip to content

Commit

Permalink
Merge pull request #743 from ljrk0/support_darwin_aarch64
Browse files Browse the repository at this point in the history
Fix #724. build: Add darwin aarch64 to supported architectures
  • Loading branch information
qkaiser authored Feb 4, 2024
2 parents d63bb0b + 5df141e commit 9bd40b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
outputs = { self, nixpkgs, filter, unblob-native, lzallright, pyperscan, sasquatch, ... }:
let
# System types to support.
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];

# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'.
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
Expand Down
9 changes: 9 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ final: prev:
nativeCheckInputs = (super.nativeCheckInputs or [ ]) ++ [ final.which ];
});

simg2img = prev.simg2img.overrideAttrs (super: {
postPatch = ''
substituteInPlace output_file.cpp \
--replace-fail \
'aligned_offset = offset & ~(4096 - 1);' \
'aligned_offset = offset & ~(sysconf(_SC_PAGESIZE) - 1);'
'';
});

# Own package updated independently of nixpkgs
jefferson = final.callPackage ./nix/jefferson { };

Expand Down

0 comments on commit 9bd40b6

Please sign in to comment.