From 87100de4bf0e426aadadabf5bb2d53b2c2ec330f Mon Sep 17 00:00:00 2001 From: Yury Shvedov Date: Mon, 19 Feb 2024 17:00:26 +0300 Subject: [PATCH] [nix] Remove generate_packages wrapper #50 Change-Id: I0713e44dce13f55eec5881dec587a8609ca762dd --- flake.nix | 1 - nix/generate_packages.nix | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 nix/generate_packages.nix diff --git a/flake.nix b/flake.nix index bb19833..90d044e 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; } diff --git a/nix/generate_packages.nix b/nix/generate_packages.nix deleted file mode 100644 index da65df2..0000000 --- a/nix/generate_packages.nix +++ /dev/null @@ -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} -''