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-05-21 19:27:43 +03:00
|
|
|
ymExe.url = "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.2.2.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-02-29 18:05:13 +03:00
|
|
|
let
|
|
|
|
yandex-music-with = pkgs: pkgs.callPackage ./nix {
|
|
|
|
inherit ymExe;
|
|
|
|
};
|
|
|
|
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 = rec {
|
|
|
|
yandex-music = {
|
2024-01-14 15:35:58 +03:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
2024-02-14 14:07:10 +03:00
|
|
|
yandex-music = yandex-music-with prev;
|
2024-01-14 15:35:58 +03:00
|
|
|
})
|
|
|
|
];
|
2024-02-29 18:05:13 +03:00
|
|
|
};
|
|
|
|
default = yandex-music;
|
2024-01-14 15:35:58 +03:00
|
|
|
};
|
2024-02-29 18:05:13 +03:00
|
|
|
|
|
|
|
nixosModule = self.nixosModules.default;
|
|
|
|
};
|
2024-01-14 15:35:58 +03:00
|
|
|
}
|