diff --git a/pkgs/applications/networking/yafc/default.nix b/pkgs/applications/networking/yafc/default.nix new file mode 100644 index 00000000000..ae3ce06ca50 --- /dev/null +++ b/pkgs/applications/networking/yafc/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, readline, openssh}: + +stdenv.mkDerivation { + name = "yafc-1.1.1"; + src = fetchurl { + url = mirror://sourceforge/yafc/yafc-1.1.1.tar.bz2; + sha256 = "ab72b2ed89fb75dbe8ebd119458cf513392225f367cccfad881e9780aefcd7e6"; + }; + + buildInputs = [readline openssh]; + + patchPhase = " + sed -e 's@/usr/bin/ssh@${openssh}/bin/ssh@' -i src/main.c + "; + + meta = { + description = "ftp/sftp client with readline, autocompletion and bookmarks"; + homepage = http://yafc.sourceforge.net; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3fc042bcfb8..913fc627bff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8941,6 +8941,10 @@ let inherit (xlibs) libX11; }; + yafc = import ../applications/networking/yafc { + inherit fetchurl stdenv readline openssh; + }; + myEnvFun = import ../misc/my-env { inherit substituteAll pkgs; inherit (stdenv) mkDerivation;