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 9363d12ba7 [nix] Prettify code
* Make all build with one mkDerivation procedure
* Use version from version_info.json file
* Add meta field
* Use version_info.json to download exe file if none given
* Add noflake version for testing previous
* Use common desktop file
* Install icon with package

Change-Id: I2fecc74859f3c788161bb2f96bd5aa950d6433ae
2024-01-31 23:59:39 +03:00

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.8.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-backgroud = 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;
})
];
}];
};
}