mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Merge pull request #51 from ein-shved/master
[nix] Remove generate_packages wrapper Fix #50
This commit is contained in:
commit
b58e0b6b27
@ -19,7 +19,6 @@
|
||||
packages = rec {
|
||||
yandex-music = yandex-music-with pkgs;
|
||||
yandex-music-noflakes = pkgs.callPackage ./nix {};
|
||||
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
|
||||
default = yandex-music;
|
||||
};
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
{ 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}
|
||||
''
|
Loading…
Reference in New Issue
Block a user