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
2024-05-07 00:33:33 +00:00

42 lines
950 B
Nix

{
description = "Native Yandex Music desktop client";
inputs = {
ymExe.url = "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.1.4.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-noflakes = pkgs.callPackage ./nix {};
default = yandex-music;
};
}
) // {
nixosModules = rec {
yandex-music = {
nixpkgs.overlays = [
(final: prev: {
yandex-music = yandex-music-with prev;
})
];
};
default = yandex-music;
};
nixosModule = self.nixosModules.default;
};
}