0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00
yandex-music-linux/flake.nix

35 lines
874 B
Nix
Raw Normal View History

{
description = "Native Yandex Music desktop client";
inputs = {
2024-02-22 03:32:00 +03:00
ymExe.url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.12.exe;
ymExe.flake = false;
};
outputs = { self, ymExe, nixpkgs, flake-utils }:
let
2024-02-14 14:07:10 +03:00
yandex-music-with = pkgs: pkgs.callPackage ./nix {
inherit ymExe;
};
in
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages = rec {
2024-02-14 14:07:10 +03:00
yandex-music = yandex-music-with pkgs;
yandex-music-noflakes = pkgs.callPackage ./nix {};
default = yandex-music;
};
}
) // {
modules = [{
nixpkgs.overlays = [
(final: prev: {
2024-02-14 14:07:10 +03:00
yandex-music = yandex-music-with prev;
})
];
}];
};
}