corkscrew: fix build

Fixes #273771, update source to maintained location
This commit is contained in:
John Sullivan 2023-12-12 23:46:13 -05:00
parent 102c342318
commit 762d26ae89

View File

@ -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;
};
}