12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-WoU5rdsIEhZQ+kPoXcestrGXC76rFPvhxa0msXjFsNg=";
19 frontend = buildNpmPackage {
21 pname = "${pname}-webapp";
22 src = "${src}/webapp/frontend";
24 npmDepsHash = "sha256-M8P41LPg7oJ/C9abDuNM5Mn+OO0zK56CKi2BwLxv8oQ=";
29 npm run build:prod --offline -- --output-path=dist
40 passthru.updatescript = nix-update-script { };
44 inherit pname src version;
46 subPackages = "webapp/backend/cmd/scrutiny";
48 vendorHash = "sha256-SiQw6pq0Fyy8Ia39S/Vgp9Mlfog2drtVn43g+GXiQuI=";
52 ldflags = [ "-extldflags=-static" ];
57 mkdir -p $out/share/scrutiny
58 cp -r ${frontend}/* $out/share/scrutiny
61 passthru.tests.scrutiny = nixosTests.scrutiny;
62 passthru.updatescript = nix-update-script { };
65 description = "Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds";
66 homepage = "https://github.com/AnalogJ/scrutiny";
67 changelog = "https://github.com/AnalogJ/scrutiny/releases/tag/v${version}";
68 license = lib.licenses.mit;
69 maintainers = with lib.maintainers; [ jnsgruk ];
70 mainProgram = "scrutiny";
71 platforms = lib.platforms.linux;