2024-01-14 15:35:58 +03:00
|
|
|
{
|
|
|
|
description = "Native Yandex Music desktop client";
|
|
|
|
inputs = {
|
|
|
|
ymExe = {
|
2024-01-30 21:49:43 +03:00
|
|
|
url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.8.exe;
|
2024-01-14 15:35:58 +03:00
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, ymExe, nixpkgs, flake-utils }:
|
|
|
|
let
|
2024-01-15 10:52:43 +03:00
|
|
|
yandex-music-with = pkgs: pkgs.callPackage ./nix {
|
2024-01-14 15:35:58 +03:00
|
|
|
inherit ymExe;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = rec {
|
2024-01-15 10:52:43 +03:00
|
|
|
yandex-music = yandex-music-with pkgs;
|
2024-01-30 21:32:35 +03:00
|
|
|
yandex-music-backgroud = yandex-music.override {
|
|
|
|
fixQuit = false;
|
|
|
|
};
|
2024-01-15 10:52:43 +03:00
|
|
|
default = yandex-music;
|
2024-01-14 15:35:58 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
) // {
|
|
|
|
modules = [{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
2024-01-15 10:52:43 +03:00
|
|
|
yandex-music = yandex-music-with prev;
|
2024-01-14 15:35:58 +03:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
}
|