hexio: init at 1.0RC1
This commit is contained in:
parent
8a690b2a9f
commit
620f367a60
36
pkgs/development/tools/hexio/default.nix
Normal file
36
pkgs/development/tools/hexio/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -869,6 +869,8 @@ in
|
||||
|
||||
heatseeker = callPackage ../tools/misc/heatseeker { };
|
||||
|
||||
hexio = callPackage ../development/tools/hexio { };
|
||||
|
||||
interlock = callPackage ../servers/interlock {};
|
||||
|
||||
kapacitor = callPackage ../servers/monitoring/kapacitor { };
|
||||
|
Loading…
Reference in New Issue
Block a user