Unverified Commit 0f4d3fac authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #330646 from NotAShelf/master

nuclear; 0.6.30 -> 0.6.31; move to by-name; nixfmt
parents da64ac6b 69eeceba
Loading
Loading
Loading
Loading
+15 −10
Original line number Diff line number Diff line
{ appimageTools
, lib
, fetchurl
{
  appimageTools,
  lib,
  fetchurl,
}:
let
  pname = "nuclear";
  version = "0.6.30";
  version = "0.6.31";

  src = fetchurl {
    url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}.AppImage";
    hash = "sha256-he1uGC1M/nFcKpMM9JKY4oeexJcnzV0ZRxhTjtJz6xw=";
    # Nuclear currenntly only publishes AppImage releases for x86_64, which is hardcoded in
    # the package name. We also hardcode the host arch in the release name, but should upstream
    # provide more arches, we should use stdenv.hostPlatform to determine the arch and choose
    # source URL accordingly.
    url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}-x86_64.AppImage";
    hash = "sha256-ezho69fDP4OiLpC8KNKc8OIZ++TX4GUinFB6o8MLx3I=";
  };

  appimageContents = appimageTools.extract { inherit pname version src; };
@@ -19,15 +24,15 @@ appimageTools.wrapType2 {
  extraInstallCommands = ''
    install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
    substituteInPlace $out/share/applications/${pname}.desktop \
      --replace 'Exec=AppRun' 'Exec=${pname}'
      --replace-fail 'Exec=AppRun' 'Exec=${pname}'
    cp -r ${appimageContents}/usr/share/icons $out/share
  '';

  meta = with lib; {
  meta = {
    description = "Streaming music player that finds free music for you";
    homepage = "https://nuclear.js.org/";
    license = licenses.agpl3Plus;
    maintainers = [ maintainers.NotAShelf ];
    license = lib.licenses.agpl3Plus;
    maintainers = [ lib.maintainers.NotAShelf ];
    platforms = [ "x86_64-linux" ];
    mainProgram = "nuclear";
  };
+0 −2
Original line number Diff line number Diff line
@@ -28428,8 +28428,6 @@ with pkgs;
    '';
  };
  nuclear = callPackage ../applications/audio/nuclear { };
  nuclei = callPackage ../tools/security/nuclei { };
  nullmailer = callPackage ../servers/mail/nullmailer {