nixpkgs/pkgs/data/misc/iana-etc/default.nix
2017-04-19 08:29:31 +02:00

24 lines
629 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "iana-etc-${version}";
version = "20170417";
src = fetchurl {
url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
sha256 = "0gzv8ldyf3g70m4k3m50p2gbqwvxa343v2q4xcnl1jqfgw9db5wf";
};
installPhase = ''
mkdir -p $out/etc
cp services protocols $out/etc/
'';
meta = with stdenv.lib; {
homepage = https://github.com/Mic92/iana-etc;
description = "IANA protocol and port number assignments (/etc/protocols and /etc/services)";
platforms = platforms.unix;
license = licenses.mit;
};
}