Merge staging-next into staging
This commit is contained in:
@@ -9,8 +9,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0lk8knip4xk6qzksdkn7085mmgm4ixfczdyyjw656c193y3rgnvc";
|
||||
};
|
||||
|
||||
configureFlags = stdenv.lib.optionals stdenv.hostPlatform.isWindows [ "--disable-shared" "--enable-static" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A C library for asynchronous DNS requests";
|
||||
homepage = https://c-ares.haxx.se;
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "libgit2-${version}";
|
||||
version = "0.26.8";
|
||||
version = "0.26.6";
|
||||
# keep the version in sync with pythonPackages.pygit2 and gnome3.libgit2-glib
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libgit2";
|
||||
repo = "libgit2";
|
||||
rev = "v${version}";
|
||||
sha256 = "0wmjgvz8nrpk2dsn5bcc87nl0j5hb6pah2hzrj0b6jkk9mnin9fl";
|
||||
sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DTHREADSAFE=ON" ];
|
||||
|
||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
name = "libffi-3.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://sourceware.org/pub/libffi/${name}.tar.gz";
|
||||
url = "https://sourceware.org/pub/libffi/${name}.tar.gz";
|
||||
sha256 = "0dya49bnhianl0r65m65xndz6ls2jn1xngyn72gd28ls3n7bnvnh";
|
||||
};
|
||||
|
||||
|
||||
@@ -28,8 +28,11 @@ in stdenv.mkDerivation (rec {
|
||||
sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
|
||||
'' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||
ln -s lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-gnueabihf.h
|
||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
'' + lib.optionalString (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isMusl) ''
|
||||
ln -s lock-obj-pub.x86_64-pc-linux-musl.h src/syscfg/lock-obj-pub.linux-musl.h
|
||||
'' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isMusl) ''
|
||||
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.arm-unknown-linux-musleabihf.h
|
||||
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-musleabihf.h
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "info" ];
|
||||
|
||||
38
pkgs/development/libraries/libgpiod/default.nix
Normal file
38
pkgs/development/libraries/libgpiod/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, autoconf-archive, pkgconfig, kmod, enable-tools ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libgpiod-unstable-${version}";
|
||||
version = "2018-10-07";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git";
|
||||
rev = "4bf402d3a49336eacd33654441d575bd267780b8";
|
||||
sha256 = "01f3jzb133z189sxdiz9qiy65p0bjqhynfllidbpxdr0cxkyyc1d";
|
||||
};
|
||||
|
||||
buildInputs = [ kmod ];
|
||||
nativeBuildInputs = [
|
||||
autoconf-archive
|
||||
pkgconfig
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-tools=${if enable-tools then "yes" else "no"}"
|
||||
"--enable-bindings-cxx"
|
||||
"--prefix=$(out)"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "C library and tools for interacting with the linux GPIO character device";
|
||||
longDescription = ''
|
||||
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
|
||||
the character device instead. This library encapsulates the ioctl calls and
|
||||
data structures behind a straightforward API.
|
||||
'';
|
||||
homepage = https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/;
|
||||
license = licenses.lgpl2;
|
||||
maintainers = [ maintainers.expipiplus1 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
28
pkgs/development/libraries/libopusenc/default.nix
Normal file
28
pkgs/development/libraries/libopusenc/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libopus }:
|
||||
|
||||
let
|
||||
version = "0.2.1";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libopusenc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://archive.mozilla.org/pub/opus/libopusenc-${version}.tar.gz";
|
||||
sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libopus ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library for encoding .opus audio files and live streams";
|
||||
license = licenses.bsd3;
|
||||
homepage = http://www.opus-codec.org/;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ pmiddend ];
|
||||
};
|
||||
}
|
||||
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "A C++ library to access PostgreSQL databases";
|
||||
homepage = http://pqxx.org/development/libpqxx/;
|
||||
license = lib.licenses.postgresql;
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.eelco ];
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.1.10";
|
||||
version = "1.1.11";
|
||||
formattedVersion = lib.replaceChars ["."] ["_"] version;
|
||||
|
||||
# Make sure we override python, so the correct version is chosen
|
||||
@@ -16,8 +16,8 @@ in stdenv.mkDerivation {
|
||||
src = fetchFromGitHub {
|
||||
owner = "arvidn";
|
||||
repo = "libtorrent";
|
||||
rev = "libtorrent-${formattedVersion}";
|
||||
sha256 = "0qj1rz52jk95m43cr7l3fi9jmf4pwxncp5mq4hi2vzacfnf79yms";
|
||||
rev = "libtorrent_${formattedVersion}";
|
||||
sha256 = "0nwdsv6d2gkdsh7l5a46g6cqx27xwh3msify5paf02l1qzjy4s5l";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, hunspell, pkgconfig, perl }:
|
||||
{ stdenv, fetchurl, hunspell, ncurses, pkgconfig, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mythes-1.2.4";
|
||||
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs = [ hunspell ];
|
||||
nativeBuildInputs = [ pkgconfig perl ];
|
||||
nativeBuildInputs = [ ncurses pkgconfig perl ];
|
||||
|
||||
meta = {
|
||||
homepage = http://hunspell.sourceforge.net/;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
, mouseSupport ? false
|
||||
, unicode ? true
|
||||
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
|
||||
, enableShared ? !enableStatic
|
||||
, withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt
|
||||
|
||||
, gpm
|
||||
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
setOutputFlags = false; # some aren't supported
|
||||
|
||||
configureFlags = [
|
||||
"--with-shared"
|
||||
(lib.withFeature enableShared "shared")
|
||||
"--without-debug"
|
||||
"--enable-pc-files"
|
||||
"--enable-symlinks"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia }:
|
||||
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.1.0";
|
||||
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0ca500mzcqglkj0i6km0z512y3a025dbm24605xyv18l6y0l2ny3";
|
||||
};
|
||||
|
||||
buildInputs = [ qtbase qtquick1 qtmultimedia ];
|
||||
buildInputs = [ qtbase qtquick1 qtmultimedia ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin utmp;
|
||||
nativeBuildInputs = [ qmake ];
|
||||
|
||||
patchPhase = ''
|
||||
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
description = "A QML port of qtermwidget";
|
||||
homepage = https://github.com/Swordfish90/qmltermwidget;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||
maintainers = with stdenv.lib.maintainers; [ skeidel ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, static ? false
|
||||
, static ? true
|
||||
, shared ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
@@ -24,13 +25,15 @@ stdenv.mkDerivation (rec {
|
||||
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "static" ];
|
||||
outputs = [ "out" "dev" ]
|
||||
++ stdenv.lib.optional (shared && static) "static";
|
||||
setOutputFlags = false;
|
||||
outputDoc = "dev"; # single tiny man3 page
|
||||
|
||||
configureFlags = stdenv.lib.optional (!static) "--shared";
|
||||
configureFlags = stdenv.lib.optional shared "--shared"
|
||||
++ stdenv.lib.optional (static && !shared) "--static";
|
||||
|
||||
postInstall = ''
|
||||
postInstall = stdenv.lib.optionalString (shared && static) ''
|
||||
moveToOutput lib/libz.a "$static"
|
||||
''
|
||||
# jww (2015-01-06): Sometimes this library install as a .so, even on
|
||||
@@ -64,7 +67,7 @@ stdenv.mkDerivation (rec {
|
||||
"PREFIX=${stdenv.cc.targetPrefix}"
|
||||
] ++ stdenv.lib.optionals (stdenv.hostPlatform.libc == "msvcrt") [
|
||||
"-f" "win32/Makefile.gcc"
|
||||
] ++ stdenv.lib.optionals (!static) [
|
||||
] ++ stdenv.lib.optionals shared [
|
||||
"SHARED_MODE=1"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user