@@ -1,16 +1,16 @@
1−{stdenv, fetchurl}:
1+{ stdenv, fetchzip }:
22
3−stdenv.mkDerivation rec {
4− name = "iana-etc-${version}";
3+let
54 version = "20180711";
5+in fetchzip {
6+ name = "iana-etc-${version}";
67
7− src = fetchurl {
8− url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
9− sha256 = "0xigkz6pcqx55px7fap7j6p3hz27agv056crbl5pgfcdix7y8z26";
10− };
8+ url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
9+ sha256 = "0vbgk3paix2v4rlh90a8yh1l39s322awng06izqj44zcg704fjbj";
1110
12− installPhase = ''
13− install -D -t $out/etc services protocols
11+ postFetch = ''
12+ tar -xzvf $downloadedFile --strip-components=1
13+ install -D -m0644 -t $out/etc services protocols
1414 '';
1515
1616 meta = with stdenv.lib; {