git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #68889 from nspin/pr/various-cross-2
1bc7faeMatthew Bauer
pkgs/development/compilers/dtc/default.nix+7−4
@@ -1,4 +1,6 @@
1−{ stdenv, fetchgit, flex, bison, pkgconfig, python2, swig, which }:
1+{ stdenv, lib, fetchgit, flex, bison, pkgconfig, which
2+, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform, python2, swig
3+}:
2
4
3stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
4 pname = "dtc";
6 pname = "dtc";
@@ -10,16 +12,17 @@ stdenv.mkDerivation rec {
10 sha256 = "1jhhfrg22h53lvm2lqhd66pyk20pil08ry03wcwyx1c3ln27k73z";
12 sha256 = "1jhhfrg22h53lvm2lqhd66pyk20pil08ry03wcwyx1c3ln27k73z";
11 };
13 };
12
14
13− nativeBuildInputs = [ flex bison pkgconfig swig which ];
15+ nativeBuildInputs = [ flex bison pkgconfig which ] ++ lib.optionals pythonSupport [ python2 swig ];
14− buildInputs = [ python2 ];
16+ buildInputs = lib.optionals pythonSupport [ python2 ];
15
17
16 postPatch = ''
18 postPatch = ''
17 patchShebangs pylibfdt/
19 patchShebangs pylibfdt/
18 '';
20 '';
19
21
22+ makeFlags = lib.optionals (!pythonSupport) [ "NO_PYTHON=1" ];
20 installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ];
23 installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ];
21
24
22− meta = with stdenv.lib; {
25+ meta = with lib; {
23 description = "Device Tree Compiler";
26 description = "Device Tree Compiler";
24 homepage = https://git.kernel.org/cgit/utils/dtc/dtc.git;
27 homepage = https://git.kernel.org/cgit/utils/dtc/dtc.git;
25 license = licenses.gpl2; # dtc itself is GPLv2, libfdt is dual GPL/BSD
28 license = licenses.gpl2; # dtc itself is GPLv2, libfdt is dual GPL/BSD
pkgs/os-specific/linux/udisks/2-default.nix+2−2
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
16 sha256 = "01wx2x8xyal595dhdih7rva2bz7gqzgwdp56gi0ikjdzayx17wcf";
16 sha256 = "01wx2x8xyal595dhdih7rva2bz7gqzgwdp56gi0ikjdzayx17wcf";
17 };
17 };
18
18
19− outputs = [ "out" "man" "dev" "devdoc" ];
19+ outputs = [ "out" "man" "dev" ] ++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "devdoc";
20
20
21 patches = [
21 patches = [
22 (substituteAll {
22 (substituteAll {
@@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
57 preConfigure = "NOCONFIGURE=1 ./autogen.sh";
57 preConfigure = "NOCONFIGURE=1 ./autogen.sh";
58
58
59 configureFlags = [
59 configureFlags = [
60− "--enable-gtk-doc"
60+ (stdenv.lib.enableFeature (stdenv.buildPlatform == stdenv.hostPlatform) "gtk-doc")
61 "--localstatedir=/var"
61 "--localstatedir=/var"
62 "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
62 "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
63 "--with-udevdir=$(out)/lib/udev"
63 "--with-udevdir=$(out)/lib/udev"
pkgs/tools/security/gnupg/22.nix+2−2
@@ -24,9 +24,9 @@ stdenv.mkDerivation rec {
24 };
24 };
25
25
26 depsBuildBuild = [ buildPackages.stdenv.cc ];
26 depsBuildBuild = [ buildPackages.stdenv.cc ];
27− nativeBuildInputs = [ pkgconfig ];
27+ nativeBuildInputs = [ pkgconfig texinfo ];
28 buildInputs = [
28 buildInputs = [
29− libgcrypt libassuan libksba libiconv npth gettext texinfo
29+ libgcrypt libassuan libksba libiconv npth gettext
30 readline libusb gnutls adns openldap zlib bzip2 sqlite
30 readline libusb gnutls adns openldap zlib bzip2 sqlite
31 ];
31 ];
32
32
pkgs/tools/security/pinentry/autoconf-ar.patchnew file+35
@@ -0,0 +1,35 @@
1+diff -ur a/configure.ac b/configure.ac
2+--- a/configure.ac 2019-09-14 11:30:11.584847746 +0000
3++++ b/configure.ac 2019-09-14 11:31:26.692355265 +0000
4+@@ -81,6 +81,7 @@
5+ AC_PROG_CPP
6+ AC_PROG_INSTALL
7+ AC_PROG_RANLIB
8++AC_CHECK_TOOL(AR, ar)
9+ # We need to check for cplusplus here because we may not do the test
10+ # for Qt and autoconf does does not allow that.
11+ AC_PROG_CXX
12+diff -ur a/pinentry/Makefile.in b/pinentry/Makefile.in
13+--- a/pinentry/Makefile.in 2017-12-03 17:43:23.000000000 +0000
14++++ b/pinentry/Makefile.in 2019-09-14 11:32:02.532000236 +0000
15+@@ -113,7 +113,7 @@
16+ CONFIG_CLEAN_FILES =
17+ CONFIG_CLEAN_VPATH_FILES =
18+ LIBRARIES = $(noinst_LIBRARIES)
19+-AR = ar
20++AR = @AR@
21+ ARFLAGS = cru
22+ AM_V_AR = $(am__v_AR_@AM_V@)
23+ am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
24+diff -ur a/secmem/Makefile.in b/secmem/Makefile.in
25+--- a/secmem/Makefile.in 2017-12-03 17:43:23.000000000 +0000
26++++ b/secmem/Makefile.in 2019-09-14 11:31:58.764934552 +0000
27+@@ -113,7 +113,7 @@
28+ CONFIG_CLEAN_FILES =
29+ CONFIG_CLEAN_VPATH_FILES =
30+ LIBRARIES = $(noinst_LIBRARIES)
31+-AR = ar
32++AR = @AR@
33+ ARFLAGS = cru
34+ AM_V_AR = $(am__v_AR_@AM_V@)
35+ am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
pkgs/tools/security/pinentry/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ fetchurl, fetchpatch, stdenv, lib, pkgconfig
1+{ fetchurl, fetchpatch, stdenv, lib, pkgconfig, autoreconfHook
2, libgpgerror, libassuan
2, libgpgerror, libassuan
3, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
3, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
4, qt4 ? null, qt5 ? null
4, qt4 ? null, qt5 ? null
@@ -23,7 +23,7 @@ mkDerivation rec {
23 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
23 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
24 };
24 };
25
25
26− nativeBuildInputs = [ pkgconfig ];
26+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
27 buildInputs =
27 buildInputs =
28 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
28 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
29 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
29 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
@@ -32,7 +32,9 @@ mkDerivation rec {
32 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
32 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
33 '';
33 '';
34
34
35+ patches = [
36+ ./autoconf-ar.patch
35− patches = lib.optionals (gtk2 != null) [
37+ ] ++ lib.optionals (gtk2 != null) [
36 (fetchpatch {
38 (fetchpatch {
37 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
39 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
38 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";
40 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";