2024-01-14 15:35:58 +03:00
|
|
|
{
|
|
|
|
description = "Native Yandex Music desktop client";
|
2024-02-29 18:05:13 +03:00
|
|
|
|
2024-01-14 15:35:58 +03:00
|
|
|
inputs = {
|
2024-08-02 03:37:14 +03:00
|
|
|
ymExe.url = "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.8.3.exe";
|
2024-01-31 21:56:40 +03:00
|
|
|
ymExe.flake = false;
|
2024-01-14 15:35:58 +03:00
|
|
|
};
|
2024-02-29 18:05:13 +03:00
|
|
|
|
2024-01-14 15:35:58 +03:00
|
|
|
outputs = { self, ymExe, nixpkgs, flake-utils }:
|
2024-05-22 14:23:12 +03:00
|
|
|
let
|
|
|
|
yandex-music-with = pkgs: pkgs.callPackage ./nix {
|
|
|
|
inherit ymExe;
|
|
|
|
};
|
|
|
|
modules = isHm: rec {
|
|
|
|
yandex-music = {
|
|
|
|
imports = [ (import ./nix/module.nix { inherit isHm yandex-music-with; }) ];
|
2024-02-29 18:05:13 +03:00
|
|
|
};
|
2024-05-22 14:23:12 +03:00
|
|
|
default = yandex-music;
|
2024-02-29 18:05:13 +03:00
|
|
|
};
|
2024-05-22 14:23:12 +03:00
|
|
|
in
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = rec {
|
|
|
|
yandex-music = yandex-music-with pkgs;
|
|
|
|
yandex-music-noflakes = pkgs.callPackage ./nix { };
|
|
|
|
default = yandex-music;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
) // {
|
|
|
|
nixosModules = modules false;
|
|
|
|
homeManagerModules = modules true;
|
2024-02-29 18:05:13 +03:00
|
|
|
|
2024-05-22 14:23:12 +03:00
|
|
|
nixosModule = self.nixosModules.default;
|
|
|
|
};
|
2024-01-14 15:35:58 +03:00
|
|
|
}
|