about summary refs log tree commit diff
path: root/pkgs/applications/audio/spotify-player
diff options
context:
space:
mode:
authorMostly Void <7rat13@gmail.com>2023-01-30 20:59:49 +0530
committerMostly Void <7rat13@gmail.com>2023-01-30 21:35:15 +0530
commitffc15c70603cff0e7bc7d9089964238aa2c42f3c (patch)
tree0fcf0879010d017e518bb9ba7b0be9a3f97363ff /pkgs/applications/audio/spotify-player
parent28065fed29d92117b9e2a366412d2fc4aac887b1 (diff)
spotify-player: init at 0.10.0
Diffstat (limited to 'pkgs/applications/audio/spotify-player')
-rw-r--r--pkgs/applications/audio/spotify-player/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/audio/spotify-player/default.nix b/pkgs/applications/audio/spotify-player/default.nix
new file mode 100644
index 0000000000000..9fa3a5336b9f9
--- /dev/null
+++ b/pkgs/applications/audio/spotify-player/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, cmake
+, alsa-lib
+, dbus
+, fontconfig
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "spotify-player";
+  version = "0.10.0";
+
+  src = fetchFromGitHub {
+    owner = "aome510";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-bHPWpx8EJibr2kNuzuGAQPZ0DE6qeJwIRYDy+NFS/PQ=";
+  };
+
+  cargoSha256 = "sha256-QeQ3PYI5RmbJ+VQ9hLSTXgQXVVoID5zbRqSTrbWzVy8=";
+
+  nativeBuildInputs = [
+    pkg-config
+    cmake
+  ];
+
+  buildInputs = [
+    openssl
+    alsa-lib
+    dbus
+    fontconfig
+  ];
+
+  buildNoDefaultFeatures = true;
+
+  buildFeatures = [
+    "rodio-backend"
+    "media-control"
+    "image"
+    "lyric-finder"
+  ];
+
+  meta = with lib; {
+    description = "A command driven spotify player";
+    homepage = "https://github.com/aome510/spotify-player";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dit7ya ];
+  };
+}