mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
957 B
Nix
47 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";
|
|
};
|
|
}
|