diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2024-04-28 13:59:32 +0200 |
---|---|---|
committer | Jonas Heinrich <onny@project-insanity.org> | 2024-05-02 10:26:49 +0200 |
commit | d7e8dfc67c336e6b6ce4375b9075b20964cb3b55 (patch) | |
tree | 3b42ca61a73960e263e8c04b8bb046e5dee6063a /pkgs/by-name/do/downonspot/package.nix | |
parent | e1d146073402be9c35d1943c68c053ee90546bca (diff) |
downonspot: unstable-2023-11-26 -> unstable-2024-04-30
Diffstat (limited to 'pkgs/by-name/do/downonspot/package.nix')
-rw-r--r-- | pkgs/by-name/do/downonspot/package.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/do/downonspot/package.nix b/pkgs/by-name/do/downonspot/package.nix new file mode 100644 index 0000000000000..f6e568d964389 --- /dev/null +++ b/pkgs/by-name/do/downonspot/package.nix @@ -0,0 +1,46 @@ +{ 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 = "A 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"; + }; +} |