Skip to content

Commit

Permalink
nginx-config-formatter: init at 2016-06-16 (#22179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Svein Ove Aas authored and globin committed Jan 27, 2017
1 parent ced27b2 commit 3d78976
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/tools/misc/nginx-config-formatter/default.nix
@@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, python3 }:

stdenv.mkDerivation rec {
version = "2016-06-16";
name = "nginx-config-formatter-${version}";

src = fetchFromGitHub {
owner = "1connect";
repo = "nginx-config-formatter";
rev = "fe5c77d2a503644bebee2caaa8b222c201c0603d";
sha256 = "0akpkbq5136k1i1z1ls6yksis35hbr70k8vd10laqwvr1jj41bga";
};

buildInputs = [ python3 ];

doCheck = true;
checkPhase = ''
python3 $src/test_nginxfmt.py
'';

installPhase = ''
mkdir -p $out/bin
install -m 0755 $src/nginxfmt.py $out/bin/nginxfmt
'';

meta = with stdenv.lib; {
description = "nginx config file formatter";
maintainers = with maintainers; [ baughn ];
license = licenses.asl20;
homepage = https://github.com/1connect/nginx-config-formatter;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -2537,6 +2537,8 @@ with pkgs;

netsniff-ng = callPackage ../tools/networking/netsniff-ng { };

nginx-config-formatter = callPackage ../tools/misc/nginx-config-formatter { };

ninka = callPackage ../development/tools/misc/ninka { };

nodejs = hiPrio nodejs-6_x;
Expand Down

0 comments on commit 3d78976

Please sign in to comment.