From c1c942c346777b8cc55dbfc129b97c38a8a2a3bd Mon Sep 17 00:00:00 2001
From: xeals <dev@xeal.me>
Date: Sat, 17 Oct 2020 16:20:37 +1100
Subject: [PATCH] spotify-ripper: mark as unfree

Allows building CI as free-only following requirements of upstream.
---
 .travis.yml                                | 1 -
 pkgs/tools/misc/spotify-ripper/default.nix | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f41f624..aced61f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,6 @@ os: linux
 env:
   global:
     - CACHIX_CACHE="xeals"
-    - NIXPKGS_ALLOW_UNFREE="1"
     - NUR_REPO="xeals"
 
 jobs:
diff --git a/pkgs/tools/misc/spotify-ripper/default.nix b/pkgs/tools/misc/spotify-ripper/default.nix
index 98cfef0..6d0c5d8 100644
--- a/pkgs/tools/misc/spotify-ripper/default.nix
+++ b/pkgs/tools/misc/spotify-ripper/default.nix
@@ -57,6 +57,7 @@ python2Packages.buildPythonApplication rec {
       to WAV, FLAC, Ogg Vorbis, Opus, AAC, and MP4/M4A.
     '';
     homepage = "https://github.com/hbashton/spotify-ripper";
-    license = stdenv.lib.licenses.mit;
+    # spotify-ripper itself is MIT, but the upstream libspotify is unfree.
+    license = stdenv.lib.licenses.unfree;
   };
 }