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/default.nix
Yury Shvedov d2b1fbf4aa Add support for NixOS
Additionally - fix some shellcheck warnings in repack.sh

Change-Id: I2cbc6516c54a4f4e4ecef817ed9fe90b0a460faa
2024-01-14 15:35:58 +03:00

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}
'';
}