echoip: unstable-2019-07-12 -> unstable-2021-08-03

+17 -9
+17 -9
pkgs/servers/echoip/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule { 4 pname = "echoip"; 5 - version = "unstable-2019-07-12"; 6 7 src = fetchFromGitHub { 8 owner = "mpolden"; 9 repo = "echoip"; 10 - rev = "fb5fac92d2173c2a5b07ed4ecc7b5fefe8484ed2"; 11 - sha256 = "17gkh1qfxasvxy25lmjdwk5fsjkcp7lmw9si3xzf01m7qnj5zi4b"; 12 }; 13 14 - vendorSha256 = "0vvs717pl5gzggxpbn2vkyxmpiw5zjdfnpbh8i81xidbqvlnm22h"; 15 16 - outputs = [ "out" "index" ]; 17 18 postInstall = '' 19 - mkdir -p $index 20 - cp $src/index.html $index/index.html 21 ''; 22 23 meta = with lib; { 24 homepage = "https://github.com/mpolden/echoip"; 25 license = licenses.bsd3; 26 - maintainers = with maintainers; [ rvolosatovs ]; 27 }; 28 }
··· 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , makeWrapper 5 + }: 6 7 buildGoModule { 8 pname = "echoip"; 9 + version = "unstable-2021-08-03"; 10 11 src = fetchFromGitHub { 12 owner = "mpolden"; 13 repo = "echoip"; 14 + rev = "ffa6674637a5bf906d78ae6675f9a4680a78ab7b"; 15 + sha256 = "sha256-yN7PIwoIi2SPwwFWnHDoXnwvKohkPPf4kVsNxHLpqCE="; 16 }; 17 18 + vendorSha256 = "sha256-lXYpkeGpBK+WGHqyLxJz7kS3t7a55q55QQLTqtxzroc="; 19 20 + nativeBuildInputs = [ makeWrapper ]; 21 22 postInstall = '' 23 + install -D html/* -t $out/share/echoip/html 24 + wrapProgram $out/bin/echoip \ 25 + --add-flags "-t $out/share/echoip/html" 26 ''; 27 + 28 + doCheck = false; 29 30 meta = with lib; { 31 + description = "IP address lookup service"; 32 homepage = "https://github.com/mpolden/echoip"; 33 license = licenses.bsd3; 34 + maintainers = with maintainers; [ rvolosatovs SuperSandro2000 ]; 35 }; 36 }