From 4eb5711706980004f8ef4188effde83dcb831264 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Sat, 17 Feb 2018 06:35:35 +0700 Subject: [PATCH] simplehttp2server: init at 3.1.3 --- pkgs/servers/simplehttp2server/default.nix | 25 ++++++++++++++++++++++ pkgs/servers/simplehttp2server/deps.nix | 12 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/servers/simplehttp2server/default.nix create mode 100644 pkgs/servers/simplehttp2server/deps.nix diff --git a/pkgs/servers/simplehttp2server/default.nix b/pkgs/servers/simplehttp2server/default.nix new file mode 100644 index 00000000000..083a224d155 --- /dev/null +++ b/pkgs/servers/simplehttp2server/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "simplehttp2server-${version}"; + version = "3.1.3"; + + goPackagePath = "github.com/GoogleChromeLabs/simplehttp2server"; + + src = fetchFromGitHub { + owner = "GoogleChromeLabs"; + repo = "simplehttp2server"; + rev = version; + sha256 = "113mcfvy1m91wask5039mhr0187nlw325ac32785yl4bb4igi8aw"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + homepage = https://github.com/GoogleChromeLabs/simplehttp2server; + description = "HTTP/2 server for development purposes"; + license = licenses.asl20; + maintainers = with maintainers; [ yrashk ]; + }; + +} diff --git a/pkgs/servers/simplehttp2server/deps.nix b/pkgs/servers/simplehttp2server/deps.nix new file mode 100644 index 00000000000..e6a26bf2506 --- /dev/null +++ b/pkgs/servers/simplehttp2server/deps.nix @@ -0,0 +1,12 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 +[ + { + goPackagePath = "github.com/NYTimes/gziphandler"; + fetch = { + type = "git"; + url = "https://github.com/NYTimes/gziphandler"; + rev = "289a3b81f5aedc99f8d6eb0f67827c142f1310d8"; + sha256 = "1r9ly9wdqjcc4nwv71mfldf1f5cjm4r34vvkdm5wabmdqqqwkbyx"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6a10ba606cd..cbba6dc8f23 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20623,4 +20623,6 @@ with pkgs; tlwg = callPackage ../data/fonts/tlwg { }; safeDiscardStringContext = callPackage ../build-support/safe-discard-string-context.nix { }; + + simplehttp2server = callPackage ../servers/simplehttp2server { }; }