0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-24 14:34:39 +03:00
yandex-music-linux/flake.nix
Yury Shvedov c3c787eecb nix: add desktop item and fix names
Move default.nix to nix folder
Rename yandex_music to yandex-music to be more nix-styled
Add generation of yandex-music.desktop file

Change-Id: Id0f3bebc22e50ce51be13615ef47717277eb8e3d
2024-01-15 12:27:43 +03:00

36 lines
823 B
Nix

{
description = "Native Yandex Music desktop client";
inputs = {
ymExe = {
url = https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.6.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;
default = yandex-music;
};
}
) // {
modules = [{
nixpkgs.overlays = [
(final: prev: {
yandex-music = yandex-music-with prev;
})
];
}];
};
}