nixpkgs/pkgs/servers/echoip/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
668 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2018-11-23 22:04:54 +01:00
2019-04-28 19:03:54 +02:00
buildGoModule {
pname = "echoip";
2019-04-28 18:23:19 +02:00
version = "unstable-2019-07-12";
2018-11-23 22:04:54 +01:00
src = fetchFromGitHub {
owner = "mpolden";
repo = "echoip";
2019-04-28 18:23:19 +02:00
rev = "fb5fac92d2173c2a5b07ed4ecc7b5fefe8484ed2";
sha256 = "17gkh1qfxasvxy25lmjdwk5fsjkcp7lmw9si3xzf01m7qnj5zi4b";
2018-11-23 22:04:54 +01:00
};
vendorSha256 = "0vvs717pl5gzggxpbn2vkyxmpiw5zjdfnpbh8i81xidbqvlnm22h";
2018-11-23 22:04:54 +01:00
outputs = [ "out" "index" ];
2018-11-23 22:04:54 +01:00
postInstall = ''
mkdir -p $index
cp $src/index.html $index/index.html
2018-11-23 22:04:54 +01:00
'';
meta = with lib; {
homepage = "https://github.com/mpolden/echoip";
2018-11-23 22:04:54 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ rvolosatovs ];
};
}