Skip to content

Commit

Permalink
geoipupdate: Init at 4.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ authored and Jon committed Nov 19, 2019
1 parent 56b5f66 commit f06ca05
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkgs/applications/misc/geoipupdate/default.nix
@@ -0,0 +1,23 @@
{ stdenv, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "geoipupdate";
version = "4.1.5";

src = fetchFromGitHub {
owner = "maxmind";
repo = "geoipupdate";
rev = "v${version}";
sha256 = "1k0bmsqgw35sdmaafinlr4qd5910fi598i8irxrz11394d3c8giv";
};

modSha256 = "0mk6zp6byq3jc6wipx53bg5igry114klq5w8isc0z6r63zjsk6f6";

meta = with stdenv.lib; {
description = "Automatic GeoIP database updater";
homepage = "https://github.com/maxmind/geoipupdate";
license = with licenses; [ asl20 ];
platforms = platforms.all;
maintainers = with maintainers; [ das_j ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -18690,6 +18690,8 @@ in
geany = callPackage ../applications/editors/geany { };
geany-with-vte = callPackage ../applications/editors/geany/with-vte.nix { };

geoipupdate = callPackage ../applications/misc/geoipupdate/default.nix { };

ghostwriter = libsForQt5.callPackage ../applications/editors/ghostwriter { };

gitweb = callPackage ../applications/version-management/git-and-tools/gitweb { };
Expand Down

4 comments on commit f06ca05

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ nix-build -A geoipupdate && ./result/bin/geoipupdate 
/nix/store/bamikr3wk08aqczmqswzw45r1lklsa81-geoipupdate-4.1.5
error loading configuration file: error opening file: open /usr/local/etc/GeoIP.conf: no such file or directory

@jonringer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D:, good catch. @dasJ

@dasJ
Copy link
Member Author

@dasJ dasJ commented on f06ca05 Nov 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's expected?

$ geoipupdate --help
Usage: geoipupdate <arguments>
  -f, --config-file string          Configuration file (default "/usr/local/etc/GeoIP.conf")
  -d, --database-directory string   Store databases in this directory (uses config if not specified)
  -h, --help                        Display help and exit
      --stack-trace                 Show a stack trace along with any error message.
  -v, --verbose                     Use verbose output
  -V, --version                     Display the version and exit

Take a look at #73767

@jonringer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, seems reasonable :)

Please sign in to comment.