git.iko.soy/typeable/nixpkgs
on master help sign in
nginx-config-formatter: init at 2016-06-16 (#22179)
commit3d78976c58492a0455c98f531eb3782206529c1d authorSvein Ove Aas <svein.ove@aas.no> dateFri 27 Jan 2017, 15:52 (10 years ago) parentced27b2
2 files changed+34
pkgs/tools/misc/nginx-config-formatter/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/nginx-config-formatter/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, python3 }:
2+
3+stdenv.mkDerivation rec {
4+ version = "2016-06-16";
5+ name = "nginx-config-formatter-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "1connect";
9+ repo = "nginx-config-formatter";
10+ rev = "fe5c77d2a503644bebee2caaa8b222c201c0603d";
11+ sha256 = "0akpkbq5136k1i1z1ls6yksis35hbr70k8vd10laqwvr1jj41bga";
12+ };
13+
14+ buildInputs = [ python3 ];
15+
16+ doCheck = true;
17+ checkPhase = ''
18+ python3 $src/test_nginxfmt.py
19+ '';
20+
21+ installPhase = ''
22+ mkdir -p $out/bin
23+ install -m 0755 $src/nginxfmt.py $out/bin/nginxfmt
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "nginx config file formatter";
28+ maintainers = with maintainers; [ baughn ];
29+ license = licenses.asl20;
30+ homepage = https://github.com/1connect/nginx-config-formatter;
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -2537,6 +2537,8 @@ with pkgs;
25372537
25382538 netsniff-ng = callPackage ../tools/networking/netsniff-ng { };
25392539
2540+ nginx-config-formatter = callPackage ../tools/misc/nginx-config-formatter { };
2541+
25402542 ninka = callPackage ../development/tools/misc/ninka { };
25412543
25422544 nodejs = hiPrio nodejs-6_x;