autossh: add license

This commit is contained in:
Fabian Affolter 2021-02-02 14:29:54 +01:00
parent f5a0053546
commit 27f33459d4

View file

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl, openssh}:
stdenv.mkDerivation rec {
name = "autossh-1.4g";
pname = "autossh";
version = "1.4g";
src = fetchurl {
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
url = "http://www.harding.motd.ca/autossh/${pname}-${version}.tgz";
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
};
@ -15,8 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ openssh ];
installPhase =
''
installPhase = ''
install -D -m755 autossh $out/bin/autossh || return 1
install -D -m644 CHANGES $out/share/doc/autossh/CHANGES || return 1
install -D -m644 README $out/share/doc/autossh/README || return 1
@ -28,6 +28,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://www.harding.motd.ca/autossh/";
description = "Automatically restart SSH sessions and tunnels";
license = licenses.bsd1;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};