From 1e1e19b6c7893e11f32f7de531348475f1975d7e Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Mon, 7 Jun 2021 21:10:33 +0700 Subject: [PATCH] cc65: fix darwin build --- pkgs/development/compilers/cc65/default.nix | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pkgs/development/compilers/cc65/default.nix b/pkgs/development/compilers/cc65/default.nix index 03325d2fd60..502cecfa8cf 100644 --- a/pkgs/development/compilers/cc65/default.nix +++ b/pkgs/development/compilers/cc65/default.nix @@ -1,8 +1,6 @@ -{ lib, stdenv -, fetchFromGitHub -}: +{ lib, gccStdenv, fetchFromGitHub }: -stdenv.mkDerivation rec { +gccStdenv.mkDerivation rec { pname = "cc65"; version = "2.19"; @@ -13,10 +11,7 @@ stdenv.mkDerivation rec { sha256 = "01a15yvs455qp20hri2pbg2wqvcip0d50kb7dibi9427hqk9cnj4"; }; - makeFlags = [ - "PREFIX=${placeholder "out"}" - "CC=${stdenv.cc.targetPrefix}cc" - ]; + makeFlags = [ "PREFIX=${placeholder "out"}" ]; meta = with lib; { homepage = "https://cc65.github.io/"; @@ -56,6 +51,6 @@ stdenv.mkDerivation rec { ''; license = licenses.zlib; maintainers = with maintainers; [ AndersonTorres ]; - platforms = with platforms; unix; + platforms = platforms.unix; }; }