mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04: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.
38 lines
877 B
Nix
38 lines
877 B
Nix
{ lib, buildGoModule, fetchFromGitea, installShellFiles, perl }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ssh-tools";
|
|
version = "1.9";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "vaporup";
|
|
repo = "ssh-tools";
|
|
rev = "v${version}";
|
|
hash = "sha256-ZMjpc2zjvuLJES5ixEHvo7oAx1JGzy60LzN09Ykn/54=";
|
|
};
|
|
|
|
vendorHash = "sha256-GSFhz3cIRl4XUA18HUeUkrw+AJyOkU3ZrZKYTGsWbug=";
|
|
|
|
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; {
|
|
description = "Making SSH more convenient";
|
|
homepage = "https://codeberg.org/vaporup/ssh-tools";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|