2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, udev, buildPackages }:
|
2011-07-23 01:29:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "libatasmart";
|
|
|
|
version = "0.19";
|
2011-07-23 01:29:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-27 14:47:49 +00:00
|
|
|
url = "http://0pointer.de/public/libatasmart-${version}.tar.xz";
|
2013-11-28 08:31:40 +00:00
|
|
|
sha256 = "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31";
|
2011-07-23 01:29:51 +00:00
|
|
|
};
|
|
|
|
|
2019-03-20 20:38:09 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ udev ];
|
2011-07-23 01:29:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://0pointer.de/blog/projects/being-smart.html";
|
2011-07-23 01:29:51 +00:00
|
|
|
description = "Library for querying ATA SMART status";
|
2018-08-30 19:30:20 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2011-07-23 01:29:51 +00:00
|
|
|
};
|
|
|
|
}
|