2024-01-14 15:35:58 +03:00
|
|
|
{
|
|
|
|
description = "Native Yandex Music desktop client";
|
|
|
|
inputs = {
|
2024-02-09 13:22:18 +03:00
|
|
|
ymExe.url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.10.exe;
|
2024-01-31 21:56:40 +03:00
|
|
|
ymExe.flake = false;
|
2024-01-14 15:35:58 +03:00
|
|
|
};
|
|
|
|
outputs = { self, ymExe, nixpkgs, flake-utils }:
|
|
|
|
let
|
2024-01-31 23:49:38 +03:00
|
|
|
yandexmusic-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-31 23:49:38 +03:00
|
|
|
yandexmusic = yandexmusic-with pkgs;
|
|
|
|
yandexmusic-noflakes = pkgs.callPackage ./nix {};
|
2024-01-31 21:56:40 +03:00
|
|
|
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
|
2024-01-31 23:49:38 +03:00
|
|
|
default = yandexmusic;
|
2024-01-14 15:35:58 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
) // {
|
|
|
|
modules = [{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
2024-01-31 23:49:38 +03:00
|
|
|
yandexmusic = yandexmusic-with prev;
|
2024-01-14 15:35:58 +03:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
}
|