diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-07-30 21:29:04 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-07-30 21:29:42 +0200 |
commit | 2c7abe5da41a64a503531a5aaaa3c19b8012b96a (patch) | |
tree | 3bfa268b43c255250eb4c7dd6d50fee4e0e985d1 /pkgs/servers/echoip | |
parent | 3207d8412f4b682684d545069a17f5917da353b1 (diff) |
echoip: unstable-2019-07-12 -> unstable-2021-08-03
Diffstat (limited to 'pkgs/servers/echoip')
-rw-r--r-- | pkgs/servers/echoip/default.nix | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/servers/echoip/default.nix b/pkgs/servers/echoip/default.nix index 840d7a2d4e6af..91e0818a9ccaf 100644 --- a/pkgs/servers/echoip/default.nix +++ b/pkgs/servers/echoip/default.nix @@ -1,28 +1,36 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +, makeWrapper +}: buildGoModule { pname = "echoip"; - version = "unstable-2019-07-12"; + version = "unstable-2021-08-03"; src = fetchFromGitHub { owner = "mpolden"; repo = "echoip"; - rev = "fb5fac92d2173c2a5b07ed4ecc7b5fefe8484ed2"; - sha256 = "17gkh1qfxasvxy25lmjdwk5fsjkcp7lmw9si3xzf01m7qnj5zi4b"; + rev = "ffa6674637a5bf906d78ae6675f9a4680a78ab7b"; + sha256 = "sha256-yN7PIwoIi2SPwwFWnHDoXnwvKohkPPf4kVsNxHLpqCE="; }; - vendorSha256 = "0vvs717pl5gzggxpbn2vkyxmpiw5zjdfnpbh8i81xidbqvlnm22h"; + vendorSha256 = "sha256-lXYpkeGpBK+WGHqyLxJz7kS3t7a55q55QQLTqtxzroc="; - outputs = [ "out" "index" ]; + nativeBuildInputs = [ makeWrapper ]; postInstall = '' - mkdir -p $index - cp $src/index.html $index/index.html + install -D html/* -t $out/share/echoip/html + wrapProgram $out/bin/echoip \ + --add-flags "-t $out/share/echoip/html" ''; + doCheck = false; + meta = with lib; { + description = "IP address lookup service"; homepage = "https://github.com/mpolden/echoip"; license = licenses.bsd3; - maintainers = with maintainers; [ rvolosatovs ]; + maintainers = with maintainers; [ rvolosatovs SuperSandro2000 ]; }; } |