summary refs log tree commit diff
path: root/pkgs/development/libraries/libspotify
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-05-04 10:08:35 +0000
committerRobin Gloster <mail@glob.in>2016-05-04 10:11:04 +0000
commit9820cb1bf24254199db05856bbb4919378ac75cb (patch)
tree6c6bfeb09e5799573e7546419e3496a6fcf0863a /pkgs/development/libraries/libspotify
parentaadaa913792b0fdeb68b02425e4f03d2f8286a1f (diff)
downloadnixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.gz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.bz2
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.lz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.xz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.zst
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.zip
use dontBuild instead of hacks
changes:
 * buildPhase = "true"
 * buildPhase = ":"
Diffstat (limited to 'pkgs/development/libraries/libspotify')
-rw-r--r--pkgs/development/libraries/libspotify/default.nix15
1 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/development/libraries/libspotify/default.nix b/pkgs/development/libraries/libspotify/default.nix
index 02bd1f966e6..951a939cbfb 100644
--- a/pkgs/development/libraries/libspotify/default.nix
+++ b/pkgs/development/libraries/libspotify/default.nix
@@ -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;