diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/uchiwa/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/uchiwa/default.nix | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/uchiwa/default.nix b/nixpkgs/pkgs/servers/monitoring/uchiwa/default.nix deleted file mode 100644 index a871bf87db2d..000000000000 --- a/nixpkgs/pkgs/servers/monitoring/uchiwa/default.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, buildBowerComponents, buildGoPackage, makeWrapper }: - -let - inherit (import ./src.nix) version sha256; - owner = "sensu"; - repo = "uchiwa"; - - src = fetchFromGitHub { - inherit owner repo sha256; - rev = version; - }; - - backend = buildGoPackage { - pname = "uchiwa-backend"; - inherit version; - goPackagePath = "github.com/${owner}/${repo}"; - inherit src; - postInstall = '' - mkdir -p $out - cp go/src/github.com/sensu/uchiwa/public/index.html $out/ - ''; - }; - - frontend = buildBowerComponents { - name = "uchiwa-frontend-${version}"; - generated = ./bower-packages.nix; - inherit src; - }; - -in stdenv.mkDerivation { - pname = "uchiwa"; - inherit version; - - inherit src; - - nativeBuildInputs = [ makeWrapper ]; - - buildCommand = '' - mkdir -p $out/bin $out/public - makeWrapper ${backend}/bin/uchiwa $out/bin/uchiwa \ - --add-flags "-p $out/public" - ln -s ${backend.out}/index.html $out/public/index.html - ln -s ${frontend.out}/bower_components $out/public/bower_components - ''; - - meta = with lib; { - description = "A Dashboard for the sensu monitoring framework"; - homepage = "http://sensuapp.org/"; - license = licenses.mit; - maintainers = with maintainers; [ peterhoeg ]; - platforms = platforms.unix; - }; -} |