Commit ad3d5386 authored by Justin Chen's avatar Justin Chen
Browse files

lx-music-desktop: replace `rec` with `finalAttrs` pattern

parent 8a915120
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -18,14 +18,14 @@
let
  electron = electron_40;
in
buildNpmPackage rec {
buildNpmPackage (finalAttrs: {
  pname = "lx-music-desktop";
  version = "2.12.0";

  src = fetchFromGitHub {
    owner = "lyswhut";
    repo = "lx-music-desktop";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-g4QVpymzoRKIq70aRLXGFmUmIpSiXIZThrp8fumBKTQ=";
  };

@@ -124,11 +124,11 @@ buildNpmPackage rec {
    broken = stdenv.hostPlatform.isDarwin;
    description = "Music software based on Electron and Vue";
    homepage = "https://github.com/lyswhut/lx-music-desktop";
    changelog = "https://github.com/lyswhut/lx-music-desktop/releases/tag/v${version}";
    changelog = "https://github.com/lyswhut/lx-music-desktop/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    platforms = electron.meta.platforms;
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
    mainProgram = "lx-music-desktop";
    maintainers = with lib.maintainers; [ starryreverie ];
  };
}
})