nixpkgs/pkgs/by-name/ch/chisel/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

42 lines
1.1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "chisel";
version = "1.10.1";
src = fetchFromGitHub {
owner = "jpillora";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-b3r4D/P7D3kfIyMd1s/ntciY04qMrvSTru9+HjAOrnA=";
};
vendorHash = "sha256-+11Pd/QCxoLLkeazmU9/vnPBaB2MZXmx4cEZRDnyRcQ=";
ldflags = [
"-s"
"-w"
"-X=github.com/jpillora/chisel/share.BuildVersion=${version}"
];
# Tests require access to the network
doCheck = false;
meta = with lib; {
description = "TCP/UDP tunnel over HTTP";
longDescription = ''
Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via
SSH. Single executable including both client and server. Chisel is
mainly useful for passing through firewalls, though it can also be
used to provide a secure endpoint into your network.
'';
homepage = "https://github.com/jpillora/chisel";
changelog = "https://github.com/jpillora/chisel/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}