From ae16ad59dd42484b1bf116bfc3a811cb1d3932e2 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 5 Apr 2023 16:01:05 -0700 Subject: [PATCH 1/2] streamripper: fix cross compilation --- pkgs/applications/audio/streamripper/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/audio/streamripper/default.nix b/pkgs/applications/audio/streamripper/default.nix index a44a77237d1f..a7f0f4a9d618 100644 --- a/pkgs/applications/audio/streamripper/default.nix +++ b/pkgs/applications/audio/streamripper/default.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ glib libogg libvorbis libmad ]; + makeFlags = [ + "AR=${stdenv.cc.bintools.targetPrefix}ar" # for cross + ]; + meta = with lib; { homepage = "https://streamripper.sourceforge.net/"; description = "Application that lets you record streaming mp3 to your hard drive"; From 976e85466510636a83eaac6efa3b813ba1a004b4 Mon Sep 17 00:00:00 2001 From: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> Date: Fri, 7 Apr 2023 06:15:18 +0000 Subject: [PATCH 2/2] Update pkgs/applications/audio/streamripper/default.nix Co-authored-by: Nick Cao --- pkgs/applications/audio/streamripper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/audio/streamripper/default.nix b/pkgs/applications/audio/streamripper/default.nix index a7f0f4a9d618..70ff4dd8605a 100644 --- a/pkgs/applications/audio/streamripper/default.nix +++ b/pkgs/applications/audio/streamripper/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { buildInputs = [ glib libogg libvorbis libmad ]; makeFlags = [ - "AR=${stdenv.cc.bintools.targetPrefix}ar" # for cross + "AR:=$(AR)" ]; meta = with lib; {