Skip to content

Commit

Permalink
tomlcpp: fix cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Oct 28, 2024
1 parent 1864118 commit e14a736
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/by-name/to/tomlcpp/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub, fetchpatch }:

stdenv.mkDerivation rec {
pname = "tomlcpp";
Expand All @@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
hash = "sha256-PM3gURXhyTZr59BWuLHvltjKOlKUSBT9/rqTeX5V//k=";
};

patches = [
(fetchpatch {
# Use implicit $AR variable in Makefile
# https://github.com/cktan/tomlcpp/pull/6
url = "https://github.com/cktan/tomlcpp/commit/abdb4e0db8b27f719434f5a0d6ec0b1a6b086ded.patch";
hash = "sha256-SurUKdAZNWqBC7ss5nv5mDnJyC3DqxG/Q/FweTrkLnk=";
})
];

dontConfigure = true;

installFlags = [
Expand Down

0 comments on commit e14a736

Please sign in to comment.