depot/third_party/nixpkgs/pkgs/by-name/do/downonspot/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
957 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, makeWrapper
, alsa-lib
, lame
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "downonspot";
version = "unstable-2024-04-30";
src = fetchFromGitHub {
owner = "oSumAtrIX";
repo = "DownOnSpot";
rev = "669dbb18e105129fff4886ba3710596d54a5f33a";
hash = "sha256-sUptn+tmQoI2i9WBpJU23MkdQ9h+Lmx590+2+0XXC7w=";
};
# Use official public librespot version
cargoPatches = [ ./Cargo.lock.patch ];
cargoHash = "sha256-GHhijwgTge7jzdkn0qynQIBNYeqtY26C5BaLpQ/UWgQ=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
alsa-lib
lame
];
meta = with lib; {
description = "Spotify downloader written in rust";
homepage = "https://github.com/oSumAtrIX/DownOnSpot";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ onny ];
mainProgram = "down_on_spot";
};
}