1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation {
8 pname = "iotools";
9 version = "unstable-2017-12-11";
10
11 src = fetchFromGitHub {
12 owner = "adurbin";
13 repo = "iotools";
14 rev = "18949fdc4dedb1da3f51ee83a582b112fb9f2c71";
15 hash = "sha256-tlGXJn3n27mQDupMIVYDd86YaWazVwel/qs0QqCy1W8=";
16 };
17
18 makeFlags = [
19 "DEBUG=0"
20 "STATIC=0"
21 ];
22
23 installPhase = ''
24 install -Dm755 iotools -t $out/bin
25 '';
26
27 meta = with lib; {
28 description = "Set of simple command line tools which allow access to
29 hardware device registers";
30 longDescription = ''
31 Provides a set of simple command line tools which allow access to
32 hardware device registers. Supported register interfaces include PCI,
33 IO, memory mapped IO, SMBus, CPUID, and MSR. Also included are some
34 utilities which allow for simple arithmetic, logical, and other
35 operations.
36 '';
37 homepage = "https://github.com/adurbin/iotools";
38 license = licenses.gpl2Only;
39 maintainers = with maintainers; [ felixsinger ];
40 platforms = [
41 "x86_64-linux"
42 "i686-linux"
43 ];
44 mainProgram = "iotools";
45 };
46}