0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-28 01:29:03 +03:00

[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
This commit is contained in:
Yury Shvedov
2024-01-31 23:49:38 +03:00
parent 9464224efb
commit 9363d12ba7
2 changed files with 76 additions and 42 deletions

View File

@@ -6,7 +6,7 @@
};
outputs = { self, ymExe, nixpkgs, flake-utils }:
let
yandex-music-with = pkgs: pkgs.callPackage ./nix {
yandexmusic-with = pkgs: pkgs.callPackage ./nix {
inherit ymExe;
};
in
@@ -17,19 +17,20 @@
in
{
packages = rec {
yandex-music = yandex-music-with pkgs;
yandex-music-backgroud = yandex-music.override {
yandexmusic = yandexmusic-with pkgs;
yandexmusic-backgroud = yandexmusic.override {
fixQuit = false;
};
yandexmusic-noflakes = pkgs.callPackage ./nix {};
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
default = yandex-music;
default = yandexmusic;
};
}
) // {
modules = [{
nixpkgs.overlays = [
(final: prev: {
yandex-music = yandex-music-with prev;
yandexmusic = yandexmusic-with prev;
})
];
}];