Closed storopoli closed 5 months ago
Add spotube to apps:
spotube
nixpkgs
make your own derivation, see https://github.com/NixOS/nixpkgs/issues/200120#issuecomment-1902995697:
{ stdenv, fetchurl, lib, makeWrapper, undmg }: stdenv.mkDerivation rec { pname = "spotube"; version = "3.4.0"; appname = "Spotube"; filename = "Spotube-macos-universal"; meta = with lib; { description = "An open source, cross-platform Spotify client compatible across multiple platforms utilizing Spotify's data API and YouTube (or Piped.video or JioSaavn) as an audio source, eliminating the need for Spotify Premium"; homepage = "https://github.com/KRTirtho/spotube"; downloadPage = "https://github.com/KRTirtho/spotube/releases"; license = licenses.bsd3; }; src = fetchurl { url = "https://github.com/KRTirtho/spotube/releases/download/v${version}/${filename}.dmg"; hash = "sha256-dif2ec37QL9FVPGgqqvtB2zRX6P3NCth5FFnpASR/As="; }; icon = fetchurl { url = "https://raw.githubusercontent.com/KRTirtho/spotube/nightly/assets/spotube-logo.png"; hash = "sha256-gyzP3ynzuZFN0osmEAjwGfYmbfVxE9Nm2fLJ8q8G6BE="; }; sourceRoot = "${appname}.app"; nativeBuildInputs = [ makeWrapper undmg ]; installPhase = '' runHook preInstall mkdir -p $out/{Applications/${appname}.app,bin} cp -R . $out/Applications/${appname}.app makeWrapper $out/Applications/${appname}.app/Contents/MacOS/${appname} $out/bin/${pname} runHook postInstall ''; }
I don't think I'll add this now
Add
spotube
to apps:nixpkgs
, see https://github.com/NixOS/nixpkgs/issues/200120make your own derivation, see https://github.com/NixOS/nixpkgs/issues/200120#issuecomment-1902995697: