14 src = fetchFromGitHub {
18 hash = "sha256-SW/nmJcSk/LmoKLuD5stsSaRGaJctl6hVSODNCT9i64=";
21 vendorHash = "sha256-Y55AaB8KRV+Tq/Trg1BOOwziyt+yJ2b3iVYA6bDebQY=";
23 npmDeps = fetchNpmDeps {
25 hash = "sha256-/L+eU0xwaopL2im9epiZiZ23dUqJ+3OwhWw/rIZC6hI=";
32 npmHooks.npmConfigHook
35 overrideModAttrs = oldAttrs: {
36 nativeBuildInputs = lib.filter (drv: drv != npmHooks.npmConfigHook) oldAttrs.nativeBuildInputs;
40 # Since we're using node2nix packages, the NODE_INSTALL hook isn't needed in the makefile
42 -e 's/$(NODE_INSTALL)//g' ./ui/Makefile \
43 -e 's~NODE_PATH := $(shell npm bin)~NODE_PATH := ./node_modules~g' ./ui/Makefile \
44 -e 's~NODE_MODULES := $(shell dirname `npm bin`)~NODE_MODULES := ./~g' ./ui/Makefile
50 VERSION="v${version}" make -j$NIX_BUILD_CORES
56 install -Dm 755 ./karma $out/bin/karma
59 passthru.tests.karma = nixosTests.karma;
62 changelog = "https://github.com/prymitive/karma/blob/${src.rev}/CHANGELOG.md";
63 description = "Alert dashboard for Prometheus Alertmanager";
64 mainProgram = "karma";
65 homepage = "https://karma-dashboard.io/";
66 license = licenses.asl20;
67 maintainers = with maintainers; [ nukaduka ];