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/nix/generate_packages.nix
Andrey Onishchenko a28db76a6b Utility folder
2024-02-09 15:07:50 +03:00

26 lines
406 B
Nix

{ jq
, curl
, runCommand
, lib
, makeWrapper
}:
let
paths = lib.makeBinPath [ jq curl ];
in
runCommand "generate_config"
{
src = ../utility/generate_packages.sh;
name = "generate_packages";
nativeBuildInputs = [
makeWrapper
];
} ''
mkdir -p "$out/bin"
bin="$out/bin/$name"
cp "$src" "$bin"
chmod +x "$bin"
patchShebangs "$bin"
wrapProgram "$bin" \
--prefix PATH : ${paths}
''