diff options
author | Nick Cao <nickcao@nichi.co> | 2023-12-13 09:12:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 09:12:48 -0500 |
commit | 8c2aee735fe418120707b07d223433954febfb85 (patch) | |
tree | 2bf95cc758486265837723243c907aab3345fdaa /pkgs/tools | |
parent | 9d12c7a8167e6380add23a8060282cc2b72bd693 (diff) | |
parent | 762d26ae89057d717331f30f73a959eeb65d1806 (diff) |
Merge pull request #273806 from JackSullivan/fix-corkscrew
Fix corkscrew
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/corkscrew/default.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/tools/networking/corkscrew/default.nix b/pkgs/tools/networking/corkscrew/default.nix index 3aacb0da6a2e5..757a07c919896 100644 --- a/pkgs/tools/networking/corkscrew/default.nix +++ b/pkgs/tools/networking/corkscrew/default.nix @@ -1,23 +1,22 @@ -{ lib, stdenv, fetchurl, automake }: +{ lib, stdenv, fetchFromGitHub, autoreconfHook }: stdenv.mkDerivation rec { pname = "corkscrew"; version = "2.0"; - - src = fetchurl { - url = "http://agroman.net/corkscrew/corkscrew-${version}.tar.gz"; - sha256 = "0d0fcbb41cba4a81c4ab494459472086f377f9edb78a2e2238ed19b58956b0be"; + src = fetchFromGitHub { + owner = "bryanpkc"; + repo = pname; + rev = "v${version}"; + hash = "sha256-JiddvTbuOysenrVWGUEyKSzpCF1PJaYWQUdz3FuLCdw="; }; - preConfigure = '' - ln -sf ${automake}/share/automake-*/config.sub config.sub - ln -sf ${automake}/share/automake-*/config.guess config.guess - ''; + nativeBuildInputs = [ autoreconfHook ]; meta = with lib; { - homepage = "http://agroman.net/corkscrew/"; + homepage = "https://github.com/bryanpkc/corkscrew"; description = "A tool for tunneling SSH through HTTP proxies"; license = lib.licenses.gpl2; platforms = platforms.unix; }; } + |