use dontBuild instead of hacks

changes:
 * buildPhase = "true"
 * buildPhase = ":"
This commit is contained in:
Robin Gloster
2016-05-04 10:08:35 +00:00
parent aadaa91379
commit 9820cb1bf2
58 changed files with 263 additions and 277 deletions

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, libspotify, alsaLib, readline, pkgconfig, apiKey, unzip, gnused }:
let
version = "12.1.51";
let
version = "12.1.51";
isLinux = (stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux");
in
@@ -29,13 +29,8 @@ else stdenv.mkDerivation {
else
null;
# common
buildPhase = "true";
# no patch or build phase for darwin
phases =
[ "unpackPhase" ] ++
(stdenv.lib.optionals (isLinux) [ "patchPhase" "buildPhase" ]) ++
[ "installPhase" ];
dontBuild = true;
installPhase = if (isLinux)
then "installPhase"
else ''
@@ -48,7 +43,7 @@ else stdenv.mkDerivation {
mkdir -p "$out"/share/man
mv -v man3 "$out"/share/man
'';
# darwin-specific
buildInputs = stdenv.lib.optional (stdenv.system == "x86_64-darwin") unzip;