mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, openssh }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "autossh";
|
|
version = "1.4g";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.harding.motd.ca/autossh/${pname}-${version}.tgz";
|
|
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export ac_cv_func_malloc_0_nonnull=yes
|
|
export ac_cv_func_realloc_0_nonnull=yes
|
|
'';
|
|
|
|
nativeBuildInputs = [ openssh ];
|
|
|
|
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
|
|
install -D -m644 autossh.host $out/share/autossh/examples/autossh.host || return 1
|
|
install -D -m644 rscreen $out/share/autossh/examples/rscreen || return 1
|
|
install -D -m644 autossh.1 $out/man/man1/autossh.1 || return 1
|
|
'';
|
|
|
|
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 ];
|
|
mainProgram = "autossh";
|
|
};
|
|
}
|