Skip to content

Commit

Permalink
hashrat: fix cross compilation (#351890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 29, 2024
2 parents 09e2e58 + a160b5f commit d2f71c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/tools/security/hashrat/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
}:

stdenv.mkDerivation rec {
Expand All @@ -14,6 +15,15 @@ stdenv.mkDerivation rec {
hash = "sha256-mjjK315OUUFVdUY+zcCvm7yeo7XxourR1sghWbeFT7c=";
};

patches = [
# fix cross compilation by replacing hardcoded ar with AC_PROG_AR
# https://github.com/ColumPaget/Hashrat/pull/27
(fetchpatch {
url = "https://github.com/ColumPaget/Hashrat/commit/a82615e02021245850a1703e613055da2520c8fd.patch";
hash = "sha256-tjyhM2ahZBRoRP8WjyQhrI3l20oaqMtfYmOeAZVEZqU=";
})
];

configureFlags = [ "--enable-xattr" ];

makeFlags = [ "PREFIX=$(out)" ];
Expand Down

0 comments on commit d2f71c7

Please sign in to comment.