From a3e4a9c1e4d60fb914ab99265eb75c5ecdec67f0 Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 7 Aug 2018 13:54:03 +0000 Subject: [PATCH] iana-etc: fixed output derivation (#44607) --- pkgs/data/misc/iana-etc/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/data/misc/iana-etc/default.nix b/pkgs/data/misc/iana-etc/default.nix index f3b9bf150e00..e6c33fc260e8 100644 --- a/pkgs/data/misc/iana-etc/default.nix +++ b/pkgs/data/misc/iana-etc/default.nix @@ -1,16 +1,16 @@ -{stdenv, fetchurl}: +{ stdenv, fetchzip }: -stdenv.mkDerivation rec { - name = "iana-etc-${version}"; +let version = "20180711"; +in fetchzip { + name = "iana-etc-${version}"; - src = fetchurl { - url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz"; - sha256 = "0xigkz6pcqx55px7fap7j6p3hz27agv056crbl5pgfcdix7y8z26"; - }; + url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz"; + sha256 = "0vbgk3paix2v4rlh90a8yh1l39s322awng06izqj44zcg704fjbj"; - installPhase = '' - install -D -t $out/etc services protocols + postFetch = '' + tar -xzvf $downloadedFile --strip-components=1 + install -D -m0644 -t $out/etc services protocols ''; meta = with stdenv.lib; {