Skip to content

Commit

Permalink
crazydiskinfo: init at version 1.1.0
Browse files Browse the repository at this point in the history
This currently builds against a
[PR][1] that fixes some cmake errors. I will submit a PR to build
against the main branch once that PR is merged.

[1]: otakuto/crazydiskinfo#33
  • Loading branch information
asimpson committed Jan 16, 2023
1 parent 0bdc78c commit 9e71c69
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16325,4 +16325,10 @@
github = "franzmondlichtmann";
githubId = 105480088;
};
asimpson = {
email = "[email protected]";
name = "Adam Simpson";
github = "asimpson";
githubId = 1048831;
};
}
34 changes: 34 additions & 0 deletions pkgs/applications/misc/crazydiskinfo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, cmake, ncurses, libatasmart, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "crazydiskinfo";
version = "1.1.0";

src = fetchFromGitHub {
owner = "pabs3";
repo = pname;
rev = "8563aa8636c37f0b889f3b4b27338691efdeac2b";
hash = "sha256-pfkJqVtrjoauUQRXLJGvnGWx+TpkbdN62h5raVdqb1g=";
};

nativeBuildInputs = [ cmake ];

buildInputs = [ ncurses libatasmart ];

configurePhase = ''
mkdir build
cd build
cmake ..
'';

installPhase = "install -D crazy $out/bin/crazy";

meta = with lib; {
description = "crazydiskinfo provides a TUI that surfaces smart data and uses Crystal Disk Info's algorithm for disk health and temperatures.";
homepage = "https://github.com/otakuto/crazydiskinfo";
license = licenses.mit;
maintainers = with maintainers; [ asimpson ];
platforms = platforms.linux;
mainProgram = "crazy";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38585,4 +38585,6 @@ with pkgs;
jfrog-cli = callPackage ../tools/misc/jfrog-cli { };

ov = callPackage ../tools/text/ov { };

crazydiskinfo = callPackage ../applications/misc/crazydiskinfo { };
}

0 comments on commit 9e71c69

Please sign in to comment.