fix clash-updater
This commit is contained in:
parent
1d8fbd2cdd
commit
7270a94cde
@ -52,12 +52,19 @@ stdenv.mkDerivation {
|
||||
makeUpdater = { subscription, name }: stdenv.mkDerivation {
|
||||
name = "clash-updater-${name}";
|
||||
src = ./updater.sh;
|
||||
buildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontPatchELF = true;
|
||||
dontUnpack = true;
|
||||
|
||||
checkPhase = ''
|
||||
patchShebangs bin
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
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
|
||||
IFS=$'\n\t'
|
||||
|
Loading…
x
Reference in New Issue
Block a user