nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 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 patches = [ ./001-fix-werror-in-sprintf.patch ]; 19 20 makeFlags = [ 21 "DEBUG=0" 22 "STATIC=0" 23 ]; 24 25 installPhase = '' 26 install -Dm755 iotools -t $out/bin 27 ''; 28 29 meta = { 30 description = "Set of simple command line tools which allow access to 31 hardware device registers"; 32 longDescription = '' 33 Provides a set of simple command line tools which allow access to 34 hardware device registers. Supported register interfaces include PCI, 35 IO, memory mapped IO, SMBus, CPUID, and MSR. Also included are some 36 utilities which allow for simple arithmetic, logical, and other 37 operations. 38 ''; 39 homepage = "https://github.com/adurbin/iotools"; 40 license = lib.licenses.gpl2Only; 41 maintainers = with lib.maintainers; [ felixsinger ]; 42 platforms = [ 43 "x86_64-linux" 44 "i686-linux" 45 ]; 46 mainProgram = "iotools"; 47 }; 48})