mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
fe132785ca
* Update generate_packages.sh structure to split its code to separate steps * Add update_flake to generate_packages script * Add generate_packages package to nix packages to be able to run `nix run .#generate_packages` with no need to install dependencies manually Change-Id: Ic28107829a6e04d3831ccb8a7257164875f35938
38 lines
998 B
Nix
38 lines
998 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;
|
|
ymExe.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;
|
|
};
|
|
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
|
|
default = yandex-music;
|
|
};
|
|
}
|
|
) // {
|
|
modules = [{
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
yandex-music = yandex-music-with prev;
|
|
})
|
|
];
|
|
}];
|
|
};
|
|
}
|