nixpkgs/pkgs/data/misc/iana-etc/default.nix
2017-11-08 15:25:25 +00:00

22 lines
617 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "iana-etc-${version}";
version = "20171106";
src = fetchurl {
url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
sha256 = "0pbmq95gdkp66cljwklv4gzh8lvl30l4k77hfwvrxz5mfqia6qdd";
};
installPhase = ''
install -D -t $out/etc services protocols
'';
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;
};
}