biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / downonspot / default.nix
blob5a7c6ce6933b2ed30c564915d506aa30b4c0fb23
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , pkg-config
5 , makeWrapper
6 , alsa-lib
7 , lame
8 , openssl
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "downonspot";
13   version = "unstable-2023-11-26";
15   src = fetchFromGitHub {
16     owner = "oSumAtrIX";
17     repo = "DownOnSpot";
18     rev = "406fbf137306208bcb9835ad3aa92b0edbc01805";
19     hash = "sha256-gY5pDZ5EwKhBmV8VyuKW/19BgfPSIZSp9rEI/GuonYQ=";
20   };
22   # Use official public librespot version
23   cargoPatches = [ ./Cargo.lock.patch ];
25   cargoHash = "sha256-CG9QY9Nfy/dxzvSPG2NB2/6yjTvdoDI76PRSaM138Wk=";
27   nativeBuildInputs = [
28     pkg-config
29     makeWrapper
30   ];
32   buildInputs = [
33     openssl
34     alsa-lib
35     lame
36   ];
38   meta = with lib; {
39     description = "A Spotify downloader written in rust";
40     homepage = "https://github.com/oSumAtrIX/DownOnSpot";
41     license = licenses.gpl3Only;
42     platforms = platforms.linux;
43     maintainers = with maintainers; [ onny ];
44     mainProgram = "down_on_spot";
45   };