From c98511f7c1c6c267458f076fb83bea86ed73a73e Mon Sep 17 00:00:00 2001 From: Yury Shvedov Date: Sun, 4 Feb 2024 13:55:06 +0300 Subject: [PATCH 1/3] [nix] Add to README.md Additionally remove extra variable from nix workflow Change-Id: Ia2d572d7087c8ca9a1cdb78a6ab2b70b75352ae1 --- .github/workflows/build.yml | 14 +++++++------- README.md | 37 +++++++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 229724f..ae4aebd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,11 +58,11 @@ jobs: uses: cachix/install-nix-action@v22 - uses: DeterminateSystems/magic-nix-cache-action@v2 - - - name: Build yandexmusic - run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic - - name: Build yandexmusic background - run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic-background - - name: Build yandexmusic without flakes binaries - run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic-noflakes + + - name: Build yandexmusic + run: nix build --impure .#yandexmusic + - name: Build yandexmusic background + run: nix build --impure .#yandexmusic-background + - name: Build yandexmusic without flakes binaries + run: nix build --impure .#yandexmusic-noflakes diff --git a/README.md b/README.md index 2bc14f4..f2590d3 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Native YandexMusic client for Linux. Built using repacking of Windows client (El - [ASAR archive](#asar-archive) - [Arch Linux](#arch-linux-1) - [Debian/Ubuntu](#debianubuntu-1) +- [Run with nix](#run-with-nix) + - [Run with flakes](#run-with-flakes) + - [Run old style](#run-old-style) + - [Install to NixOS](#install-to-nixos) ## Screenshots ![image](https://github.com/cucumber-sp/yandex-music-linux/assets/100789522/ab2f69ee-efc4-4a33-8110-131b4c4ff4de) @@ -28,7 +32,7 @@ Native YandexMusic client for Linux. Built using repacking of Windows client (El #### AUR -You can obtain the latest version of package from `AUR` using one of the [AUR Helpers](https://wiki.archlinux.org/title/AUR_helpers). Then install it with `yandexmusic` as package name. +You can obtain the latest version of package from `AUR` using one of the [AUR Helpers](https://wiki.archlinux.org/title/AUR_helpers). Then install it with `yandexmusic` as package name. For this example I will use [yay](https://github.com/Jguer/yay) @@ -63,7 +67,7 @@ Download prebuilt binary package from [Releases](https://github.com/cucumber-sp/ Then you can install it with the following command ``` -dpkg -i yandexmusic__.deb +dpkg -i yandexmusic__.deb ``` *** @@ -129,3 +133,32 @@ You can build `.deb` binary package using the following command: ``` sh build_deb.sh [-a default=x64] ``` + +*** + +## Run with nix + +The `yandexmusic` package has unlicensed license, so you need to have +`allowUnfree` option enabled. + +### Run with flakes + +Execute next to build and run yandex music directly from github + +``` +nix run github:cucumber-sp/yandex-music-linux +``` + +### Run old style + +Execute next in this repository to build yandexmusic package without using +flakes. + +``` +nix-build --expr '(import {}).callPackage ./nix {}' +``` + +### Install to NixOS + +This flake exports `modules` list. Append it to your system modules and add +`yandexmusic` package to `environment.systemPackages`. From bc391e629c589487525cf371ec9576142b39cdf9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 6 Feb 2024 19:30:43 +0000 Subject: [PATCH 2/3] Update packages to Beta 5.0.9 --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 195eb3e..f66a3ad 100644 --- a/flake.lock +++ b/flake.lock @@ -19,11 +19,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1706925685, - "narHash": "sha256-hVInjWMmgH4yZgA4ZtbgJM1qEAel72SYhP5nOWX4UIM=", + "lastModified": 1707171055, + "narHash": "sha256-7ZiKRdhrScsDfhDkGy8yJWAT6BfHqa8PYMX04roU03k=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "79a13f1437e149dc7be2d1290c74d378dad60814", + "rev": "4b1aab22192b787355733c9495d47f4c66af084c", "type": "github" }, "original": { From 939a67095cba6c50433fae164dc38a8de5f3a5cd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 7 Feb 2024 00:46:02 +0000 Subject: [PATCH 3/3] Update packages to Beta 5.0.9 --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index f66a3ad..2e77cf4 100644 --- a/flake.lock +++ b/flake.lock @@ -19,11 +19,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1707171055, - "narHash": "sha256-7ZiKRdhrScsDfhDkGy8yJWAT6BfHqa8PYMX04roU03k=", + "lastModified": 1707205916, + "narHash": "sha256-fmRJilYGlB7VCt3XsdYxrA0u8e/K84O5xYucerUY0iM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4b1aab22192b787355733c9495d47f4c66af084c", + "rev": "8cc79aa39bbc6eaedaf286ae655b224c71e02907", "type": "github" }, "original": {