mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-24 14:34:39 +03:00
30 lines
421 B
Nix
30 lines
421 B
Nix
|
{ fetchurl
|
||
|
, runCommand
|
||
|
, writeShellApplication
|
||
|
|
||
|
, p7zip
|
||
|
, asar
|
||
|
, electron
|
||
|
, jq
|
||
|
|
||
|
, ymExe
|
||
|
}:
|
||
|
let
|
||
|
app = runCommand "yandex_music_app"
|
||
|
{
|
||
|
nativeBuildInputs = [ p7zip asar jq ];
|
||
|
repack = ./repack.sh;
|
||
|
src = ymExe;
|
||
|
} ''
|
||
|
bash "$repack" -xl "$src"
|
||
|
mv ./app "$out"
|
||
|
'';
|
||
|
in
|
||
|
writeShellApplication {
|
||
|
name = "yandex_music";
|
||
|
runtimeInputs = [ electron ];
|
||
|
text = ''
|
||
|
electron ${app}
|
||
|
'';
|
||
|
}
|