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