mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
d2b1fbf4aa
Additionally - fix some shellcheck warnings in repack.sh Change-Id: I2cbc6516c54a4f4e4ecef817ed9fe90b0a460faa
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}
|
|
'';
|
|
}
|