2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchzip }:
|
2006-12-08 16:54:11 -08:00
|
|
|
|
2018-08-07 06:54:03 -07:00
|
|
|
let
|
2021-02-27 01:13:02 -08:00
|
|
|
version = "20210225";
|
2018-08-07 06:54:03 -07:00
|
|
|
in fetchzip {
|
|
|
|
name = "iana-etc-${version}";
|
|
|
|
url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
|
2021-02-27 01:13:02 -08:00
|
|
|
sha256 = "sha256-NVvZG3EJEYOXFDTBXD5m9sg/8msyMiBMkiZr+ZxWZ/g=";
|
2006-12-08 16:54:11 -08:00
|
|
|
|
2018-08-07 06:54:03 -07:00
|
|
|
postFetch = ''
|
|
|
|
tar -xzvf $downloadedFile --strip-components=1
|
|
|
|
install -D -m0644 -t $out/etc services protocols
|
2017-03-19 03:57:24 -07:00
|
|
|
'';
|
2009-05-28 05:42:41 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/Mic92/iana-etc";
|
2009-05-28 05:42:41 -07:00
|
|
|
description = "IANA protocol and port number assignments (/etc/protocols and /etc/services)";
|
2017-04-18 23:27:04 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
2009-05-28 05:42:41 -07:00
|
|
|
};
|
2006-12-08 16:57:16 -08:00
|
|
|
}
|