at 22.05-pre 29 lines 811 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation { 4 pname = "devmem2"; 5 version = "unstable-2004-08-05"; 6 7 src = fetchurl { 8 urls = [ 9 "http://lartmaker.nl/lartware/port/devmem2.c" 10 "https://raw.githubusercontent.com/hackndev/tools/7ed212230f8fbb1da3424a15ee88de3279bf96ec/devmem2.c" 11 ]; 12 sha256 = "14f1k7v6i1yaxg4xcaaf5i4aqn0yabba857zjnbg9wiymy82qf7c"; 13 }; 14 15 hardeningDisable = [ "format" ]; # fix compile error 16 17 buildCommand = '' 18 $CC "$src" -o devmem2 19 install -D devmem2 "$out/bin/devmem2" 20 ''; 21 22 meta = with lib; { 23 description = "Simple program to read/write from/to any location in memory"; 24 homepage = "http://lartmaker.nl/lartware/port/"; 25 license = licenses.gpl2Plus; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ bjornfor ]; 28 }; 29}