Created
May 4, 2018 21:55
-
-
Save Radvendii/2f6b593263f5f27d938e69cc6de9fc99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixpkgs.overlays = [ ( self: super: { | |
matomo = super.matomo.overrideDerivation (attrs: { | |
src2 = super.fetchurl { | |
url = "http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"; | |
sha256 = "1kf4brki4v5kl7cxn4i8fifdw2bd004r4y62nb6ingay3592xnwh"; | |
}; | |
postUnpack = '' | |
fileName=''${src2##*/} | |
fileName=''${fileName#*-} | |
fileName=''${fileName%.gz} | |
gzip -c -d $src2 > ''${sourceRoot}/misc/''${fileName} | |
''; | |
}); | |
} | |
)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment