summary refs log tree commit diff
path: root/pkgs/os-specific/linux/devmem2
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2016-11-03 15:36:30 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-11-03 15:44:56 +0100
commita6283c1126676d30de3abfb3ee8865505da0ed43 (patch)
tree40cb88f6879a6ba01a717677fe7e08226b5845cd /pkgs/os-specific/linux/devmem2
parent0a876d71cbf67dff769653f4fb11cd569ad165de (diff)
downloadnixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar.gz
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar.bz2
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar.lz
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar.xz
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.tar.zst
nixpkgs-a6283c1126676d30de3abfb3ee8865505da0ed43.zip
devmem2: init at 2004-08-05
A simple program to read/write from/to any location in memory.

Unfortunately the homepage doesn't have a versioned source code download
URL. On the other hand, the program is pretty stable, with no change for
the last 12 years...
Diffstat (limited to 'pkgs/os-specific/linux/devmem2')
-rw-r--r--pkgs/os-specific/linux/devmem2/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/devmem2/default.nix b/pkgs/os-specific/linux/devmem2/default.nix
new file mode 100644
index 00000000000..17450f36daa
--- /dev/null
+++ b/pkgs/os-specific/linux/devmem2/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "devmem2-2004-08-05";
+
+  src = fetchurl {
+    url = "http://lartmaker.nl/lartware/port/devmem2.c";
+    sha256 = "14f1k7v6i1yaxg4xcaaf5i4aqn0yabba857zjnbg9wiymy82qf7c";
+  };
+
+  buildCommand = ''
+    export hardeningDisable=format  # fix compile error
+    cc "$src" -o devmem2
+    install -D devmem2 "$out/bin/devmem2"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Simple program to read/write from/to any location in memory";
+    homepage = "http://lartmaker.nl/lartware/port/";
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ bjornfor ];
+  };
+}