diff --git a/pkgs/shells/symlinks/proxychains-symlinks/default.nix b/pkgs/shells/symlinks/proxychains-symlinks/default.nix index 6bbef60..1a9fb2c 100644 --- a/pkgs/shells/symlinks/proxychains-symlinks/default.nix +++ b/pkgs/shells/symlinks/proxychains-symlinks/default.nix @@ -2,11 +2,16 @@ lib, stdenvNoCC, proxychains, + fetchurl, }: stdenvNoCC.mkDerivation { name = "proxychains-symlinks"; - srcs = [ ]; - sourceRoot = "."; + src = ( + fetchurl { + url = "https://raw.githubusercontent.com/haad/proxychains/refs/commit/02409fba797da68fa6a06c2c9290e8e43366fd8a/completions/zsh/_proxychains4"; + sha256 = "sha256-pvqN40tZiGzITgSJm6FpwlOuMx2oHn7OOU4uhyEF7Bo="; + } + ); dontUnpack = true; dontConfigure = true; @@ -16,6 +21,7 @@ stdenvNoCC.mkDerivation { installPhase = '' install -d "$out"/{bin,share/zsh/site-functions} + install -Dm644 $src "$out/share/zsh/site-functions/_proxychains4" ln -s "${proxychains}/bin/proxychains4" "$out/bin/proxychains" echo -e '#compdef proxychains=proxychains4\n_proxychains4' > "$out/share/zsh/site-functions/_proxychains" '';