ssh-tools: 1.7 -> 1.8-unstable-2024-03-18
This commit is contained in:
parent
e2e2a2c9bc
commit
683b48c4ab
@ -1,24 +1,36 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitea, installShellFiles, perl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildGoModule rec {
|
||||||
pname = "ssh-tools";
|
pname = "ssh-tools";
|
||||||
version = "1.7";
|
version = "1.8-unstable-2024-03-18";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
owner = "vaporup";
|
owner = "vaporup";
|
||||||
repo = pname;
|
repo = "ssh-tools";
|
||||||
rev = "v${version}";
|
rev = "69c73844b2498c46f1293b129808bfdce8822c28";
|
||||||
sha256 = "sha256-PDoljR/e/qraPhG9RRjHx1gBIMtTJ815TZDJws8Qg6o=";
|
hash = "sha256-cG75Jn331G0HZZyrE+JWC05f6DgYBz6sx8MTCxsG/vw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
vendorHash = "sha256-GSFhz3cIRl4XUA18HUeUkrw+AJyOkU3ZrZKYTGsWbug=";
|
||||||
mkdir -p $out/bin
|
|
||||||
cp ssh-* $out/bin/
|
subPackages = [
|
||||||
|
"cmd/go/ssh-authorized-keys"
|
||||||
|
"cmd/go/ssh-sig"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install cmd/{bash,perl}/ssh-*/ssh-* -t $out/bin
|
||||||
|
installManPage man/*.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Collection of various tools using ssh";
|
description = "Making SSH more convenient";
|
||||||
homepage = "https://github.com/vaporup/ssh-tools/";
|
homepage = "https://codeberg.org/vaporup/ssh-tools";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user