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