mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
libctb: init at 0.16
This commit is contained in:
parent
a82f07cecf
commit
03a4369379
23
pkgs/development/libraries/libctb/default.nix
Normal file
23
pkgs/development/libraries/libctb/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libctb";
|
||||
version = "0.16";
|
||||
src = fetchurl {
|
||||
url = "https://iftools.com/download/files/legacy/${pname}-${version}.tar.gz";
|
||||
sha256 = "027wh89d0qyly3d9m6rg4x7x1gqz3y3cnxlgk0k8xgygcrm05c0w";
|
||||
};
|
||||
patches = [
|
||||
./include-kbhit.patch
|
||||
];
|
||||
sourceRoot = "${pname}-${version}/build";
|
||||
makeFlags = [
|
||||
"prefix=$(out)"
|
||||
];
|
||||
meta = with stdenv.lib; {
|
||||
description = "Communications toolbox";
|
||||
homepage = "https://iftools.com";
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.misuzu ];
|
||||
};
|
||||
}
|
13
pkgs/development/libraries/libctb/include-kbhit.patch
Normal file
13
pkgs/development/libraries/libctb/include-kbhit.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/GNUmakefile b/GNUmakefile
|
||||
index e39a687..026f9c4 100644
|
||||
--- a/GNUmakefile
|
||||
+++ b/GNUmakefile
|
||||
@@ -140,7 +140,7 @@ all: ../lib/libctb$(LIBFLAG)$(GPIBFLAG)-0.16.a ../lib/libctb$(LIBFLAG)$(GPIBFLAG
|
||||
|
||||
install: install_ctb_lib install_ctb_dll
|
||||
$(INSTALL) -d $(DESTDIR)$(prefix)/include/ctb-0.16
|
||||
- for f in ctb.h fifo.h getopt.h $(GPIBINC) iobase.h linux/serport.h linux/timer.h portscan.h serport.h serportx.h timer.h; do \
|
||||
+ for f in ctb.h fifo.h getopt.h $(GPIBINC) iobase.h kbhit.h linux/serport.h linux/timer.h portscan.h serport.h serportx.h timer.h; do \
|
||||
if test ! -d $(DESTDIR)$(prefix)/include/ctb-0.16/`dirname $$f` ; then \
|
||||
$(INSTALL) -d $(DESTDIR)$(prefix)/include/ctb-0.16/`dirname $$f`; \
|
||||
fi; \
|
@ -12216,6 +12216,8 @@ in
|
||||
|
||||
libcredis = callPackage ../development/libraries/libcredis { };
|
||||
|
||||
libctb = callPackage ../development/libraries/libctb { };
|
||||
|
||||
libctemplate = callPackage ../development/libraries/libctemplate { };
|
||||
|
||||
libcouchbase = callPackage ../development/libraries/libcouchbase { };
|
||||
|
Loading…
Reference in New Issue
Block a user