{ subscription, name }: with import {}; 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 --set SUBSCRIPTION_URL "${subscription}" ''; }