Unverified Commit 363408f7 authored by Jonas Heinrich's avatar Jonas Heinrich Committed by GitHub
Browse files

muzika: remove (#471099)

parents 5d2b3d6c 40ddc805
Loading
Loading
Loading
Loading
+0 −94
Original line number Diff line number Diff line
{
  lib,
  desktop-file-utils,
  fetchFromGitHub,
  fetchYarnDeps,
  fixup-yarn-lock,
  gjs,
  glib-networking,
  gobject-introspection,
  gst_all_1,
  gtk4,
  libadwaita,
  libsoup_3,
  meson,
  ninja,
  pkg-config,
  stdenv,
  wrapGAppsHook4,
  yarn,
  nodejs,
  blueprint-compiler,
  libsecret,
}:

stdenv.mkDerivation rec {
  pname = "muzika";
  version = "0-unstable-2023-11-07";

  src = fetchFromGitHub {
    owner = "vixalien";
    repo = "muzika";
    rev = "69c25e066297c45f4ce42d84d5d4c200789fbedf";
    hash = "sha256-Uof72o6HG4pYj1KZ8KgCwQA+0m778ezZxmt3TohNZcY=";
    fetchSubmodules = true;
  };

  postPatch = ''
    # Remove git command from version query
    sed -i '2d' meson.build
  '';

  nativeBuildInputs = [
    blueprint-compiler
    desktop-file-utils
    gobject-introspection
    meson
    ninja
    nodejs
    pkg-config
    fixup-yarn-lock
    wrapGAppsHook4
    yarn
  ];

  buildInputs = [
    gjs
    glib-networking
    gst_all_1.gst-plugins-bad
    gst_all_1.gst-plugins-base
    gst_all_1.gst-plugins-good
    gst_all_1.gst-plugins-rs
    gtk4
    libadwaita
    libsecret
    libsoup_3
  ];

  yarnOfflineCache = fetchYarnDeps {
    yarnLock = src + "/yarn.lock";
    hash = "sha256-/NkLfBmQGvgufF9ajgs7DQsBkWUUK4Bslhy7VmCBrGg=";
  };

  preConfigure = ''
    export HOME="$PWD"
    yarn config --offline set yarn-offline-mirror $yarnOfflineCache
    fixup-yarn-lock yarn.lock
  '';

  mesonFlags = [
    "-Dyarnrc=../.yarnrc"
  ];

  postFixup = ''
    sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'com.vixalien.muzika';" $out/bin/.com.vixalien.muzika-wrapped
    ln -s $out/bin/com.vixalien.muzika $out/bin/muzika
  '';

  meta = {
    description = "Elegant music streaming app";
    homepage = "https://github.com/vixalien/muzika";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ onny ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1105,6 +1105,7 @@ mapAliases {
  mumps_par = throw "'mumps_par' has been renamed to/replaced by 'mumps-mpi'"; # Converted to throw 2025-10-27
  mustache-tcl = throw "'mustache-tcl' has been renamed to/replaced by 'tclPackages.mustache-tcl'"; # Converted to throw 2025-10-27
  mutt-with-sidebar = throw "'mutt-with-sidebar' has been renamed to/replaced by 'mutt'"; # Converted to throw 2025-10-27
  muzika = throw "muzika was discontinued upstream in november 2024"; # Added 2025-12-15;
  mx-puppet-discord = throw "mx-puppet-discord was removed since the packaging was unmaintained and was the sole user of sha1 hashes in nixpkgs"; # Added 2025-07-24
  mysql-client = throw "mysql-client has been replaced by mariadb.client"; # Converted to throw 2025-10-26
  n98-magerun = throw "n98-magerun doesn't support new PHP newer than 8.1"; # Added 2025-10-03