at 22.05-pre 30 lines 794 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "pcimem"; 5 version = "unstable-2018-08-29"; 6 7 src = fetchFromGitHub { 8 owner = "billfarrow"; 9 repo = pname; 10 rev = "09724edb1783a98da2b7ae53c5aaa87493aabc9b"; 11 sha256 = "0zlbvcl5q4hgna11p3w00px1p8qgn8ga79lh6a2m7d597g86kbq3"; 12 }; 13 14 outputs = [ "out" "doc" ]; 15 16 makeFlags = [ "CFLAGS=-Wno-maybe-uninitialized" ]; 17 18 installPhase = '' 19 install -D pcimem "$out/bin/pcimem" 20 install -D README "$doc/doc/README" 21 ''; 22 23 meta = with lib; { 24 description = "Simple method of reading and writing to memory registers on a PCI card"; 25 homepage = "https://github.com/billfarrow/pcimem"; 26 license = licenses.gpl2Only; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ mafo ]; 29 }; 30}