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.
42 lines
808 B
Nix
42 lines
808 B
Nix
{ lib
|
|
, autoreconfHook
|
|
, fetchFromGitHub
|
|
, rinetd
|
|
, stdenv
|
|
, testers
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rinetd";
|
|
version = "0.73";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "samhocevar";
|
|
repo = "rinetd";
|
|
rev = "v${version}";
|
|
hash = "sha256-W8PLGd3RwmBTh1kw3k8+ZfP6AzRhZORCkxZzQ9ZbPN4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
preConfigure = ''
|
|
./bootstrap
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = rinetd;
|
|
command = "rinetd --version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "TCP/UDP port redirector";
|
|
homepage = "https://github.com/samhocevar/rinetd";
|
|
changelog = "https://github.com/samhocevar/rinetd/blob/${src.rev}/CHANGES.md";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
mainProgram = "rinetd";
|
|
};
|
|
}
|