Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Radvendii/2f6b593263f5f27d938e69cc6de9fc99 to your computer and use it in GitHub Desktop.
Save Radvendii/2f6b593263f5f27d938e69cc6de9fc99 to your computer and use it in GitHub Desktop.
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