nixpkgs/pkgs/by-name/uf/uftp/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

34 lines
873 B
Nix

{ lib, stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
pname = "uftp";
version = "5.0.3";
src = fetchurl {
url = "mirror://sourceforge/uftp-multicast/source-tar/uftp-${version}.tar.gz";
sha256 = "sha256-y4ZowZsfELxjoW/6iT4gXcPshjYQN9R32AAyYOvEAIA=";
};
buildInputs = [ openssl ];
outputs = [ "out" "man" ];
patchPhase = ''
substituteInPlace makefile --replace gcc cc
'';
installPhase = ''
mkdir -p $out/bin $man/share/man/man1
cp {uftp,uftpd,uftp_keymgt,uftpproxyd} $out/bin/
cp {uftp.1,uftpd.1,uftp_keymgt.1,uftpproxyd.1} $man/share/man/man1
'';
meta = {
description = "Encrypted UDP based FTP with multicast";
homepage = "https://uftp-multicast.sourceforge.net/";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.fadenb ];
platforms = with lib.platforms; linux ++ darwin;
};
}