iana-etc: fixed output derivation (#44607)

This commit is contained in:
volth 2018-08-07 13:54:03 +00:00 committed by xeji
parent 53df81926a
commit a3e4a9c1e4

View File

@ -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";
};
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; {