fix clash-updater
This commit is contained in:
parent
1d8fbd2cdd
commit
7270a94cde
@ -52,12 +52,19 @@ stdenv.mkDerivation {
|
|||||||
makeUpdater = { subscription, name }: stdenv.mkDerivation {
|
makeUpdater = { subscription, name }: stdenv.mkDerivation {
|
||||||
name = "clash-updater-${name}";
|
name = "clash-updater-${name}";
|
||||||
src = ./updater.sh;
|
src = ./updater.sh;
|
||||||
|
buildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
patchShebangs bin
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
makeWrapper $src $out/bin/clash-updater-${name} --set SUBSCRIPTION_URL "${subscription}"
|
makeWrapper $src $out/bin/clash-updater-${name} --set SUBSCRIPTION_URL "${subscription}"
|
||||||
'';
|
'';
|
||||||
|
2
pkgs/network/proxy/clash-premium/updater.sh
Normal file → Executable file
2
pkgs/network/proxy/clash-premium/updater.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user