diff options
author | volth <volth@webmaster.ms> | 2018-08-07 13:54:03 +0000 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-07 15:54:03 +0200 |
commit | a3e4a9c1e4d60fb914ab99265eb75c5ecdec67f0 (patch) | |
tree | bf6d5ca39b9c59de3943890da66fa005e6165c3a | |
parent | 53df81926a769c262d39d36186e0fea28cc8ec6c (diff) |
iana-etc: fixed output derivation (#44607)
-rw-r--r-- | pkgs/data/misc/iana-etc/default.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/data/misc/iana-etc/default.nix b/pkgs/data/misc/iana-etc/default.nix index f3b9bf150e005..e6c33fc260e87 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; { |