mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
ssh3: init packages
This commit is contained in:
parent
ea48055ebb
commit
dab85522ba
10 changed files with 101 additions and 33 deletions
30
pkgs/ssh3/client.nix
Normal file
30
pkgs/ssh3/client.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, buildGoModule, makeWrapper, fetchFromGitHub, playerctl }:
|
||||
buildGoModule rec {
|
||||
pname = "ssh3";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "francoismichel";
|
||||
repo = "ssh3";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0bd2hdvgapTGEGM7gdpVwxelN5BRbmdcgANbRHZ/nRw=";
|
||||
};
|
||||
|
||||
subPackages = [ "cli/client" ];
|
||||
|
||||
|
||||
|
||||
vendorHash = "sha256-ZtKxAKNyMnZ8v96GUUm4EukdIJD+ITDW9kHOez7nYmg=";
|
||||
postInstall = ''
|
||||
mv $out/bin/client $out/bin/ssh3
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Faster and rich secure shell using HTTP/3";
|
||||
homepage = "https://github.com/francoismichel/ssh3";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ therealr5 ];
|
||||
mainProgram = "ssh3";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
32
pkgs/ssh3/server.nix
Normal file
32
pkgs/ssh3/server.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib, buildGoModule, libxcrypt, makeWrapper, fetchFromGitHub, playerctl }:
|
||||
buildGoModule rec {
|
||||
pname = "ssh3-server";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "francoismichel";
|
||||
repo = "ssh3";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0bd2hdvgapTGEGM7gdpVwxelN5BRbmdcgANbRHZ/nRw=";
|
||||
};
|
||||
|
||||
subPackages = [ "cli/server" ];
|
||||
|
||||
buildInputs = [ libxcrypt ];
|
||||
|
||||
|
||||
|
||||
vendorHash = "sha256-ZtKxAKNyMnZ8v96GUUm4EukdIJD+ITDW9kHOez7nYmg=";
|
||||
postInstall = ''
|
||||
mv $out/bin/server $out/bin/ssh3-server
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Faster and rich secure shell using HTTP/3";
|
||||
homepage = "https://github.com/francoismichel/ssh3";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ therealr5 ];
|
||||
mainProgram = "ssh3";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue