nixpkgs/pkgs/by-name/go/godspeed/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

38 lines
840 B
Nix

{ stdenv
, lib
, buildGoModule
, fetchFromGitHub
, libpcap
}:
buildGoModule rec {
pname = "godspeed";
version = "unstable-2021-08-27";
src = fetchFromGitHub {
owner = "redcode-labs";
repo = "GodSpeed";
rev = "c02b184ab0fd304d1bd8cbe1566a3d3de727975e";
sha256 = "sha256-y/mCfNWe5ShdxEz8IUQ8zUzgVkUy/+5lX6rcJ3r6KoI=";
};
vendorHash = "sha256-DCDAuKvov4tkf77nJNo9mQU/bAeQasp4VBQRtLX+U6c=";
buildInputs = [
libpcap
];
postFixup = ''
mv $out/bin/GodSpeed $out/bin/${pname}
'';
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "Manager for reverse shells";
homepage = "https://github.com/redcode-labs/GodSpeed";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ] ++ teams.redcodelabs.members;
mainProgram = "godspeed";
};
}