Skip to content

Commit

Permalink
devmem2: init at 2004-08-05
Browse files Browse the repository at this point in the history
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...

(cherry picked from commit a6283c1)
  • Loading branch information
bjornfor committed Nov 3, 2016
1 parent 77d8b46 commit d622fbe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -758,6 +758,8 @@ in

deis = callPackage ../development/tools/deis {};

devmem2 = callPackage ../os-specific/linux/devmem2 { };

diagrams-builder = callPackage ../tools/graphics/diagrams-builder {
inherit (haskellPackages) ghcWithPackages diagrams-builder;
};
Expand Down

0 comments on commit d622fbe

Please sign in to comment.