Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "pcimem"; 9 version = "0-unstable-2018-08-29"; 10 11 src = fetchFromGitHub { 12 owner = "billfarrow"; 13 repo = "pcimem"; 14 rev = "09724edb1783a98da2b7ae53c5aaa87493aabc9b"; 15 sha256 = "0zlbvcl5q4hgna11p3w00px1p8qgn8ga79lh6a2m7d597g86kbq3"; 16 }; 17 18 outputs = [ 19 "out" 20 "doc" 21 ]; 22 23 makeFlags = [ "CFLAGS=-Wno-maybe-uninitialized" ]; 24 25 installPhase = '' 26 install -D pcimem "$out/bin/pcimem" 27 install -D README "$doc/doc/README" 28 ''; 29 30 meta = with lib; { 31 description = "Simple method of reading and writing to memory registers on a PCI card"; 32 mainProgram = "pcimem"; 33 homepage = "https://github.com/billfarrow/pcimem"; 34 license = licenses.gpl2Only; 35 platforms = platforms.linux; 36 maintainers = with maintainers; [ mafo ]; 37 }; 38}