3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/misc/iana-etc/default.nix

24 lines
629 B
Nix
Raw Normal View History

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
2017-03-19 10:57:24 +00:00
name = "iana-etc-${version}";
2017-05-13 07:20:27 +01:00
version = "20170512";
src = fetchurl {
2017-03-19 10:57:24 +00:00
url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
2017-05-13 07:20:27 +01:00
sha256 = "0zx2ag894qldvrv8f4hs84644kdcp8a83gjg33xsw8rrn38gll2a";
};
2017-03-19 10:57:24 +00:00
installPhase = ''
mkdir -p $out/etc
cp services protocols $out/etc/
'';
2017-04-19 07:27:04 +01:00
meta = with stdenv.lib; {
2017-03-19 10:57:24 +00:00
homepage = https://github.com/Mic92/iana-etc;
description = "IANA protocol and port number assignments (/etc/protocols and /etc/services)";
2017-04-19 07:27:04 +01:00
platforms = platforms.unix;
license = licenses.mit;
};
}