diff options
author | Michiel Leenaars <ml.software@leenaa.rs> | 2016-08-07 17:41:47 +0200 |
---|---|---|
committer | Michiel Leenaars <ml.software@leenaa.rs> | 2016-10-09 22:45:51 +0200 |
commit | 620f367a60ec8d1fbce0886fcf21a2f7e75f113e (patch) | |
tree | c5bde70583f6b5fb8efbf891c65ece78d3b38678 /pkgs/development/tools/hexio | |
parent | 8a690b2a9f73f0b6a74bf2f4d6b195c6f1f4f036 (diff) |
hexio: init at 1.0RC1
Diffstat (limited to 'pkgs/development/tools/hexio')
-rw-r--r-- | pkgs/development/tools/hexio/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/hexio/default.nix b/pkgs/development/tools/hexio/default.nix new file mode 100644 index 0000000000000..6d75c7256ee00 --- /dev/null +++ b/pkgs/development/tools/hexio/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, fetchurl, python, pcsclite, pth, glibc }: + +stdenv.mkDerivation rec { + pname = "hexio"; + name = "${pname}-${version}"; + version = "201605"; + + src = fetchFromGitHub { + sha256 = "08jxkdi0gjsi8s793f9kdlad0a58a0xpsaayrsnpn9bpmm5cgihq"; + rev = "f6f963bd0fcd2808977e0ad82dcb3100691cdd7c"; + owner = "vanrein"; + repo = "hexio"; + }; + + buildInputs = [ python pcsclite pth glibc ]; + + patchPhase = '' + substituteInPlace Makefile \ + --replace '-I/usr/local/include/PCSC/' '-I${pcsclite}/include/PCSC/' \ + --replace '-L/usr/local/lib/pth' '-I${pth}/lib/' + ''; + + installPhase = '' + mkdir -p $out/bin $out/lib $out/sbin $out/man + make DESTDIR=$out PREFIX=/ all + make DESTDIR=$out PREFIX=/ install + ''; + + meta = with stdenv.lib; { + description = "Low-level I/O helpers for hexadecimal, tty/serial devices and so on"; + homepage = https://github.com/vanrein/hexio; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ leenaars ]; + }; +} |