mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
1,019 B
Nix
37 lines
1,019 B
Nix
{ stdenv, fetchFromGitHub, python, pcsclite, pth }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hexio";
|
|
version = "1.0-RC1";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "08jxkdi0gjsi8s793f9kdlad0a58a0xpsaayrsnpn9bpmm5cgihq";
|
|
rev = "version-${version}";
|
|
owner = "vanrein";
|
|
repo = "hexio";
|
|
};
|
|
|
|
propagatedBuildInputs = [ python ];
|
|
buildInputs = [ pcsclite pth ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile \
|
|
--replace '-I/usr/local/include/PCSC/' '-I${stdenv.lib.getDev 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 ];
|
|
};
|
|
}
|