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
Yury Shvedov 93364eb2f5 [nix] Bump to 5.0.8
Change-Id: I0a02b2cb0d3ccf75f0c6cd6c267f10e38f0f43a3
2024-01-30 23:52:10 +03:00

39 lines
930 B
Nix

{
description = "Native Yandex Music desktop client";
inputs = {
ymExe = {
url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.8.exe;
flake = false;
};
};
outputs = { self, ymExe, nixpkgs, flake-utils }:
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-backgroud = yandex-music.override {
fixQuit = false;
};
default = yandex-music;
};
}
) // {
modules = [{
nixpkgs.overlays = [
(final: prev: {
yandex-music = yandex-music-with prev;
})
];
}];
};
}