1 { lib, stdenv, fetchFromGitHub, python3 }:
3 stdenv.mkDerivation rec {
5 pname = "nginx-config-formatter";
7 src = fetchFromGitHub {
9 repo = "nginx-config-formatter";
11 sha256 = "sha256-EUoOfkoVsNpIAwDaQ4NH8MkRIJZI8qeuuHUDE6LuLiI=";
14 buildInputs = [ python3 ];
18 python3 $src/test_nginxfmt.py
23 install -m 0755 $src/nginxfmt.py $out/bin/nginxfmt
27 description = "nginx config file formatter";
28 maintainers = with maintainers; [ Baughn ];
29 license = licenses.asl20;
30 homepage = "https://github.com/slomkowski/nginx-config-formatter";