forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crazydiskinfo: init at version 1.1.0
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
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16325,4 +16325,10 @@ | |
github = "franzmondlichtmann"; | ||
githubId = 105480088; | ||
}; | ||
asimpson = { | ||
email = "[email protected]"; | ||
name = "Adam Simpson"; | ||
github = "asimpson"; | ||
githubId = 1048831; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters