mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
4d7f1cf6ff
Previous workflow actually did not check nix build. Change-Id: I4a9fc3c8a7fcf17aec1328fcc5f340061ac86468
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{
|
|
description = "Native Yandex Music desktop client";
|
|
inputs = {
|
|
ymExe.url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.9.exe;
|
|
ymExe.flake = false;
|
|
};
|
|
outputs = { self, ymExe, nixpkgs, flake-utils }:
|
|
let
|
|
yandexmusic-with = pkgs: pkgs.callPackage ./nix {
|
|
inherit ymExe;
|
|
};
|
|
in
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
packages = rec {
|
|
yandexmusic = yandexmusic-with pkgs;
|
|
yandexmusic-background = yandexmusic.override {
|
|
fixQuit = false;
|
|
};
|
|
yandexmusic-noflakes = pkgs.callPackage ./nix {};
|
|
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
|
|
default = yandexmusic;
|
|
};
|
|
}
|
|
) // {
|
|
modules = [{
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
yandexmusic = yandexmusic-with prev;
|
|
})
|
|
];
|
|
}];
|
|
};
|
|
}
|