Merge master into staging-next
This commit is contained in:
commit
bde8bf2c6b
|
@ -5,13 +5,13 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "deltachat-cursed";
|
pname = "deltachat-cursed";
|
||||||
version = "0.4.1";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "adbenitez";
|
owner = "adbenitez";
|
||||||
repo = "deltachat-cursed";
|
repo = "deltachat-cursed";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-li6HsatiRJPVKKBBHyWhq2b8HhvDrOUiVT2tSupjuag=";
|
hash = "sha256-qFX5CjrF0HLR41BbrCPT+rI9vAP6VLzXXAaVq/Loabs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -22,6 +22,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
deltachat
|
deltachat
|
||||||
|
emoji
|
||||||
notify-py
|
notify-py
|
||||||
urwid-readline
|
urwid-readline
|
||||||
];
|
];
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libdeltachat";
|
pname = "libdeltachat";
|
||||||
version = "1.82.0";
|
version = "1.84.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "deltachat";
|
owner = "deltachat";
|
||||||
repo = "deltachat-core-rust";
|
repo = "deltachat-core-rust";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-cc5DFQucG1b+1QN0HTJLKAfCF3UvRunL07d4WdT6368=";
|
hash = "sha256-ZG3siulXVHTbdSd9tmenljFODZ3LWX+BXn6OJfrbEYA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit src;
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
hash = "sha256-WYjTpHTYJGqvsUI8De6+tGgjYY1nKqPyfKP9IdZfrNY=";
|
hash = "sha256-vQ+A4dEWh5+BgWOdxd7GTPuHk6M6bHgGnZcWNwR/Urs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "lhapdf";
|
pname = "lhapdf";
|
||||||
version = "6.4.0";
|
version = "6.5.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
|
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
|
||||||
sha256 = "sha256-fS8CZ+LWWw3e4EhVOzQtfIk6bbq+HjJsrWLeABDdgQw=";
|
sha256 = "sha256-ElZBniIn0aT5M4f+HagF5kg1FBfTdV6K9aMKNaamZ1E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The Apple SDK only exports locale_t from xlocale.h whereas glibc
|
# The Apple SDK only exports locale_t from xlocale.h whereas glibc
|
||||||
|
@ -15,9 +15,16 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>'
|
substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ]
|
||||||
|
++ lib.optionals (python != null && lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ];
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
|
||||||
|
configureFlags = lib.optionals (python == null) [ "--disable-python" ];
|
||||||
|
|
||||||
|
preBuild = lib.optionalString (python != null && lib.versionAtLeast python.version "3.10") ''
|
||||||
|
rm wrappers/python/lhapdf.cpp
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs, stdenv}:
|
||||||
|
|
||||||
deployAndroidPackage {
|
deployAndroidPackage {
|
||||||
inherit package os;
|
inherit package os;
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
||||||
buildInputs = lib.optional (os == "linux") [ pkgs.stdenv.cc.libc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
|
buildInputs = lib.optional (os == "linux") [ pkgs.stdenv.cc.libc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
|
||||||
patchInstructions = lib.optionalString (os == "linux") ''
|
patchInstructions = lib.optionalString (os == "linux") ''
|
||||||
autoPatchelf $packageBaseDir/bin
|
autoPatchelf $packageBaseDir/bin
|
||||||
|
|
|
@ -171,7 +171,7 @@ rec {
|
||||||
|
|
||||||
cmake = map (version:
|
cmake = map (version:
|
||||||
import ./cmake.nix {
|
import ./cmake.nix {
|
||||||
inherit deployAndroidPackage os autoPatchelfHook pkgs lib;
|
inherit deployAndroidPackage os autoPatchelfHook pkgs lib stdenv;
|
||||||
package = packages.cmake.${version};
|
package = packages.cmake.${version};
|
||||||
}
|
}
|
||||||
) cmakeVersions;
|
) cmakeVersions;
|
||||||
|
@ -179,7 +179,7 @@ rec {
|
||||||
# Creates a NDK bundle.
|
# Creates a NDK bundle.
|
||||||
makeNdkBundle = ndkVersion:
|
makeNdkBundle = ndkVersion:
|
||||||
import ./ndk-bundle {
|
import ./ndk-bundle {
|
||||||
inherit deployAndroidPackage os autoPatchelfHook makeWrapper pkgs pkgsHostHost lib platform-tools;
|
inherit deployAndroidPackage os autoPatchelfHook makeWrapper pkgs pkgsHostHost lib platform-tools stdenv;
|
||||||
package = packages.ndk-bundle.${ndkVersion};
|
package = packages.ndk-bundle.${ndkVersion};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,33 +2,35 @@
|
||||||
|
|
||||||
deployAndroidPackage {
|
deployAndroidPackage {
|
||||||
inherit package os;
|
inherit package os;
|
||||||
buildInputs = [ autoPatchelfHook makeWrapper ]
|
buildInputs = [ makeWrapper ]
|
||||||
++ lib.optionals (os == "linux") [
|
++ lib.optionals (os == "linux") (with pkgs; [
|
||||||
pkgs.glibc
|
autoPatchelfHook
|
||||||
pkgs.xorg.libX11
|
glibc
|
||||||
pkgs.xorg.libXext
|
libcxx
|
||||||
pkgs.xorg.libXdamage
|
libGL
|
||||||
pkgs.xorg.libXfixes
|
libpulseaudio
|
||||||
pkgs.xorg.libxcb
|
libuuid
|
||||||
pkgs.xorg.libXcomposite
|
zlib
|
||||||
pkgs.xorg.libXcursor
|
ncurses5
|
||||||
pkgs.xorg.libXi
|
stdenv.cc.cc
|
||||||
pkgs.xorg.libXrender
|
i686.glibc
|
||||||
pkgs.xorg.libXtst
|
expat
|
||||||
pkgs.libcxx
|
freetype
|
||||||
pkgs.libGL
|
nss
|
||||||
pkgs.libpulseaudio
|
nspr
|
||||||
pkgs.libuuid
|
alsa-lib
|
||||||
pkgs.zlib
|
]) ++ (with pkgs.xorg; [
|
||||||
pkgs.ncurses5
|
libX11
|
||||||
pkgs.stdenv.cc.cc
|
libXext
|
||||||
pkgs_i686.glibc
|
libXdamage
|
||||||
pkgs.expat
|
libXfixes
|
||||||
pkgs.freetype
|
libxcb
|
||||||
pkgs.nss
|
libXcomposite
|
||||||
pkgs.nspr
|
libXcursor
|
||||||
pkgs.alsa-lib
|
libXi
|
||||||
];
|
libXrender
|
||||||
|
libXtst
|
||||||
|
]);
|
||||||
patchInstructions = lib.optionalString (os == "linux") ''
|
patchInstructions = lib.optionalString (os == "linux") ''
|
||||||
addAutoPatchelfSearchPath $packageBaseDir/lib
|
addAutoPatchelfSearchPath $packageBaseDir/lib
|
||||||
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, pkgsHostHost, makeWrapper, autoPatchelfHook
|
{ stdenv, lib, pkgs, pkgsHostHost, makeWrapper, autoPatchelfHook
|
||||||
, deployAndroidPackage, package, os, platform-tools
|
, deployAndroidPackage, package, os, platform-tools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -9,7 +9,8 @@ let
|
||||||
in
|
in
|
||||||
deployAndroidPackage {
|
deployAndroidPackage {
|
||||||
inherit package os;
|
inherit package os;
|
||||||
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ]
|
||||||
|
++ lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
||||||
autoPatchelfIgnoreMissingDeps = true;
|
autoPatchelfIgnoreMissingDeps = true;
|
||||||
buildInputs = lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.python2 pkgs.ncurses5 pkgs.zlib pkgs.libcxx.out pkgs.libxml2 ];
|
buildInputs = lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.python2 pkgs.ncurses5 pkgs.zlib pkgs.libcxx.out pkgs.libxml2 ];
|
||||||
patchInstructions = lib.optionalString (os == "linux") (''
|
patchInstructions = lib.optionalString (os == "linux") (''
|
||||||
|
|
|
@ -3,8 +3,12 @@
|
||||||
deployAndroidPackage {
|
deployAndroidPackage {
|
||||||
name = "androidsdk";
|
name = "androidsdk";
|
||||||
inherit os package;
|
inherit os package;
|
||||||
buildInputs = [ autoPatchelfHook makeWrapper ]
|
buildInputs = [ makeWrapper ]
|
||||||
++ lib.optional (os == "linux") [ pkgs.glibc pkgs.xorg.libX11 pkgs.xorg.libXrender pkgs.xorg.libXext pkgs.fontconfig pkgs.freetype pkgs_i686.glibc pkgs_i686.xorg.libX11 pkgs_i686.xorg.libXrender pkgs_i686.xorg.libXext pkgs_i686.fontconfig.lib pkgs_i686.freetype pkgs_i686.zlib pkgs.fontconfig.lib ];
|
++ lib.optional (os == "linux") (
|
||||||
|
(with pkgs; [ autoPatchelfHook glibc freetype fontconfig fontconfig.lib])
|
||||||
|
++ (with pkgs.xorg; [ libX11 libXrender libXext ])
|
||||||
|
++ (with pkgs_i686; [ glibc xorg.libX11 xorg.libXrender xorg.libXext fontconfig.lib freetype zlib ])
|
||||||
|
);
|
||||||
|
|
||||||
patchInstructions = ''
|
patchInstructions = ''
|
||||||
${lib.optionalString (os == "linux") ''
|
${lib.optionalString (os == "linux") ''
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
{ lib, buildPythonPackage, python, pythonOlder, glibcLocales, fetchFromGitHub, ipaddress, six, simplejson }:
|
{ lib, buildPythonPackage, python, pythonOlder, glibcLocales, fetchFromGitHub, six, simplejson }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mail-parser";
|
pname = "mail-parser";
|
||||||
version = "3.15.0";
|
version = "3.15.0";
|
||||||
|
|
||||||
# no tests in PyPI tarball
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SpamScope";
|
owner = "SpamScope";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
|
@ -15,7 +14,7 @@ buildPythonPackage rec {
|
||||||
LC_ALL = "en_US.utf-8";
|
LC_ALL = "en_US.utf-8";
|
||||||
|
|
||||||
nativeBuildInputs = [ glibcLocales ];
|
nativeBuildInputs = [ glibcLocales ];
|
||||||
propagatedBuildInputs = [ simplejson six ] ++ lib.optional (pythonOlder "3.3") ipaddress;
|
propagatedBuildInputs = [ simplejson six ];
|
||||||
|
|
||||||
# Taken from .travis.yml
|
# Taken from .travis.yml
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
{ stdenv, lib, buildPythonPackage, pythonOlder, pythonAtLeast
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, pythonAtLeast
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, libmaxminddb
|
, libmaxminddb
|
||||||
, ipaddress
|
|
||||||
, mock
|
, mock
|
||||||
, nose
|
, nose
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "2.2.0";
|
|
||||||
pname = "maxminddb";
|
pname = "maxminddb";
|
||||||
|
version = "2.2.0";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
|
@ -18,8 +21,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
buildInputs = [ libmaxminddb ];
|
buildInputs = [ libmaxminddb ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ ipaddress ];
|
|
||||||
|
|
||||||
checkInputs = [ nose mock ];
|
checkInputs = [ nose mock ];
|
||||||
|
|
||||||
# Tests are broken for macOS on python38
|
# Tests are broken for macOS on python38
|
||||||
|
@ -27,7 +28,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Reader for the MaxMind DB format";
|
description = "Reader for the MaxMind DB format";
|
||||||
homepage = "https://www.maxmind.com/en/home";
|
homepage = "https://github.com/maxmind/MaxMind-DB-Reader-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pyparsing
|
, pyparsing
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, pretend
|
, pretend
|
||||||
, setuptools
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
@ -13,6 +14,8 @@ let
|
||||||
version = "21.3";
|
version = "21.3";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
||||||
|
|
|
@ -4,12 +4,10 @@
|
||||||
, cryptography
|
, cryptography
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, idna
|
, idna
|
||||||
, ipaddress
|
|
||||||
, pyasn1
|
, pyasn1
|
||||||
, pyasn1-modules
|
, pyasn1-modules
|
||||||
, six
|
, six
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -30,8 +28,6 @@ buildPythonPackage rec {
|
||||||
pyasn1
|
pyasn1
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
six
|
six
|
||||||
] ++ lib.optionals (pythonOlder "3.3") [
|
|
||||||
ipaddress
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock }:
|
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytestCheckHook, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "swagger-spec-validator";
|
pname = "swagger-spec-validator";
|
||||||
|
@ -7,25 +7,23 @@ buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Yelp";
|
owner = "Yelp";
|
||||||
repo = "swagger_spec_validator";
|
repo = "swagger_spec_validator";
|
||||||
rev = "v" + version;
|
rev = "v${version}";
|
||||||
sha256 = "sha256-7+kFmtzeze0QlGf6z/M4J4F7z771a5NWewB1S3+bxn4=";
|
sha256 = "sha256-7+kFmtzeze0QlGf6z/M4J4F7z771a5NWewB1S3+bxn4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
pytest
|
|
||||||
mock
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pyyaml
|
pyyaml
|
||||||
jsonschema
|
jsonschema
|
||||||
six
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
mock
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "swagger_spec_validator" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/Yelp/swagger_spec_validator";
|
homepage = "https://github.com/Yelp/swagger_spec_validator";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
@ -33,5 +31,3 @@ buildPythonPackage rec {
|
||||||
maintainers = with maintainers; [ vanschelven ];
|
maintainers = with maintainers; [ vanschelven ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,22 @@
|
||||||
{ lib, stdenv, python, buildPythonPackage, pythonOlder, fetchPypi, isPy3k, incremental, ipaddress, twisted
|
{ lib
|
||||||
, automat, zope_interface, idna, pyopenssl, service-identity, pytestCheckHook, mock, lsof
|
, stdenv
|
||||||
, GeoIP }:
|
, python
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchPypi
|
||||||
|
, cryptography
|
||||||
|
, incremental
|
||||||
|
, twisted
|
||||||
|
, automat
|
||||||
|
, zope_interface
|
||||||
|
, idna
|
||||||
|
, pyopenssl
|
||||||
|
, service-identity
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
, lsof
|
||||||
|
, GeoIP
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "txtorcon";
|
pname = "txtorcon";
|
||||||
|
@ -12,9 +28,12 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
incremental twisted automat zope_interface
|
cryptography
|
||||||
] ++ twisted.optional-dependencies.tls
|
incremental
|
||||||
++ lib.optionals (!isPy3k) [ ipaddress ];
|
twisted
|
||||||
|
automat
|
||||||
|
zope_interface
|
||||||
|
] ++ twisted.optional-dependencies.tls;
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook mock lsof GeoIP ];
|
checkInputs = [ pytestCheckHook mock lsof GeoIP ];
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7";
|
sha256 = "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pyyaml ];
|
propagatedBuildInputs = [ pyyaml ];
|
||||||
|
|
||||||
doCheck = false; # requires files from uap-core
|
doCheck = false; # requires files from uap-core
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,13 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains like upstream
|
||||||
|
# gcc-10. Otherwise build fails as:
|
||||||
|
# ld: CMakeFiles/t4k_common.dir/t4k_throttle.c.o:(.bss+0x0): multiple definition of
|
||||||
|
# `wrapped_lines'; CMakeFiles/t4k_common.dir/t4k_audio.c.o:(.bss+0x0): first defined here
|
||||||
|
# TODO: revisit https://github.com/tux4kids/t4kcommon/pull/10 when merged.
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ];
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ];
|
||||||
|
|
||||||
|
|
|
@ -1,53 +1,70 @@
|
||||||
{ lib, stdenv, fetchgit, fetchurl, fetchpatch, nasm, perl, python3, libuuid, mtools, makeWrapper }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchgit
|
||||||
|
, fetchurl
|
||||||
|
, libuuid
|
||||||
|
, makeWrapper
|
||||||
|
, mtools
|
||||||
|
, nasm
|
||||||
|
, perl
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "syslinux";
|
pname = "syslinux";
|
||||||
version = "unstable-20190207";
|
version = "unstable-2019-02-07";
|
||||||
|
|
||||||
# This is syslinux-6.04-pre3^1; syslinux-6.04-pre3 fails to run.
|
# This is syslinux-6.04-pre3^1; syslinux-6.04-pre3 fails to run.
|
||||||
# Same issue here https://www.syslinux.org/archives/2019-February/026330.html
|
# Same issue here https://www.syslinux.org/archives/2019-February/026330.html
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://repo.or.cz/syslinux";
|
url = "https://repo.or.cz/syslinux";
|
||||||
rev = "b40487005223a78c3bb4c300ef6c436b3f6ec1f7";
|
rev = "b40487005223a78c3bb4c300ef6c436b3f6ec1f7";
|
||||||
sha256 = "1acf6byx7i6vz8hq6mra526g8mf7fmfhid211y8nq0v6px7d3aqs";
|
sha256 = "sha256-GqvRTr9mA2yRD0G0CF11x1X0jCgqV4Mh+tvE0/0yjqk=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = let
|
patches = let
|
||||||
mkURL = commit: patchName:
|
fetchDebianPatch = name: commit: hash:
|
||||||
"https://salsa.debian.org/images-team/syslinux/raw/${commit}/debian/patches/"
|
fetchurl {
|
||||||
+ patchName;
|
url = "https://salsa.debian.org/images-team/syslinux/raw/"
|
||||||
|
+ commit + "/debian/patches/" + name;
|
||||||
|
inherit name hash;
|
||||||
|
};
|
||||||
|
fetchArchlinuxPatch = name: commit: hash:
|
||||||
|
fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/"
|
||||||
|
+ commit + "/trunk/" + name;
|
||||||
|
inherit name hash;
|
||||||
|
};
|
||||||
in [
|
in [
|
||||||
(fetchurl {
|
./gcc10.patch
|
||||||
url = mkURL "fa1349f1" "0002-gfxboot-menu-label.patch";
|
(fetchDebianPatch
|
||||||
sha256 = "06ifgzbpjj4picpj17zgprsfi501zf4pp85qjjgn29i5rs291zni";
|
"0002-gfxboot-menu-label.patch"
|
||||||
})
|
"fa1349f1"
|
||||||
(fetchurl {
|
"sha256-0f6QhM4lJmGflLige4n7AZTodL7vnyAvi5dIedd/Lho=")
|
||||||
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/821c3da473d1399d930d5b4a086e46a4179eaa45/trunk/0005-gnu-efi-version-compatibility.patch";
|
(fetchArchlinuxPatch
|
||||||
name = "0005-gnu-efi-version-compatibility.patch";
|
"0005-gnu-efi-version-compatibility.patch"
|
||||||
sha256 = "1mz2idg8cwn0mvd3jixxynhkn7rhmi5fp8cc8zznh5f0ysfra446";
|
"821c3da473d1399d930d5b4a086e46a4179eaa45"
|
||||||
})
|
"sha256-hhCVnfbAFWj/R4yh60qsMB87ofW9RznarsByhl6L4tc=")
|
||||||
(fetchurl {
|
(fetchArchlinuxPatch
|
||||||
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/821c3da473d1399d930d5b4a086e46a4179eaa45/trunk/0025-reproducible-build.patch";
|
"0025-reproducible-build.patch"
|
||||||
name = "0025-reproducible-build.patch";
|
"821c3da473d1399d930d5b4a086e46a4179eaa45"
|
||||||
sha256 = "0qk6wc6z3648828y3961pn4pi7xhd20a6fqn6z1mnj22bbvzcxls";
|
"sha256-mnb291pCSFvDNxY7o4BosJ94ib3BpOGRQIiY8Q3jZmI=")
|
||||||
})
|
(fetchDebianPatch
|
||||||
(fetchurl {
|
|
||||||
# mbr.bin: too big (452 > 440)
|
# mbr.bin: too big (452 > 440)
|
||||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
|
||||||
url = mkURL "7468ef0e38c43" "0016-strip-gnu-property.patch";
|
"0016-strip-gnu-property.patch"
|
||||||
sha256 = "17n63b8wz6szv8npla1234g1ip7lqgzx2whrpv358ppf67lq8vwm";
|
"7468ef0e38c43"
|
||||||
})
|
"sha256-lW+E6THuXlTGvhly0f/D9NwYHhkiKHot2l+bz9Eaxp4=")
|
||||||
(fetchurl {
|
(fetchDebianPatch
|
||||||
# mbr.bin: too big (452 > 440)
|
# mbr.bin: too big (452 > 440)
|
||||||
url = mkURL "012e1dd312eb" "0017-single-load-segment.patch";
|
"0017-single-load-segment.patch"
|
||||||
sha256 = "0azqzicsjw47b9ppyikhzaqmjl4lrvkxris1356bkmgcaiv6d98b";
|
"012e1dd312eb"
|
||||||
})
|
"sha256-C6VmdlTs1blMGUHH3OfOlFBZsfpwRn9vWodwqVn8+Cs=")
|
||||||
(fetchurl {
|
(fetchDebianPatch
|
||||||
url = mkURL "26f0e7b2" "0018-prevent-pow-optimization.patch";
|
"0018-prevent-pow-optimization.patch"
|
||||||
sha256 = "1c8g0jz5yj9a0rsmryx9vdjsw4hw8mjfcg05c9pmyjg85w3dfp3m";
|
"26f0e7b2"
|
||||||
})
|
"sha256-dVzXBi/oSV9vYgU85mRFHBKuZdup+1x1BipJX74ED7E=")
|
||||||
./gcc10.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -63,10 +80,20 @@ stdenv.mkDerivation {
|
||||||
touch gnu-efi/inc/ia32/gnu/stubs-32.h
|
touch gnu-efi/inc/ia32/gnu/stubs-32.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ nasm perl python3 makeWrapper ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libuuid ];
|
nasm
|
||||||
|
perl
|
||||||
|
python3
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libuuid
|
||||||
|
];
|
||||||
|
|
||||||
|
# Fails very rarely with 'No rule to make target: ...'
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...'
|
|
||||||
hardeningDisable = [ "pic" "stackprotector" "fortify" ];
|
hardeningDisable = [ "pic" "stackprotector" "fortify" ];
|
||||||
|
|
||||||
stripDebugList = [ "bin" "sbin" "share/syslinux/com32" ];
|
stripDebugList = [ "bin" "sbin" "share/syslinux/com32" ];
|
||||||
|
@ -85,9 +112,10 @@ stdenv.mkDerivation {
|
||||||
"PERL=perl"
|
"PERL=perl"
|
||||||
"HEXDATE=0x00000000"
|
"HEXDATE=0x00000000"
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isi686 [ "bios" "efi32" ];
|
++ lib.optionals stdenv.hostPlatform.isi686 [ "bios" "efi32" ];
|
||||||
|
|
||||||
doCheck = false; # fails. some fail in a sandbox, others require qemu
|
# Some tests require qemu, some others fail in a sandboxed environment
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/syslinux \
|
wrapProgram $out/bin/syslinux \
|
||||||
|
@ -100,7 +128,7 @@ stdenv.mkDerivation {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.syslinux.org/";
|
homepage = "http://www.syslinux.org/";
|
||||||
description = "A lightweight bootloader";
|
description = "A lightweight bootloader";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ maintainers.samueldr ];
|
maintainers = [ maintainers.samueldr ];
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "httm";
|
pname = "httm";
|
||||||
version = "0.10.10";
|
version = "0.10.12";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kimono-koans";
|
owner = "kimono-koans";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "kqI5zswQSjWlYwMVHCZSYr7OOHYXoWOYOPc9MuC0yw0=";
|
sha256 = "Q69XltTdJgRLCwjt+oLSUWexO3MGd2HB11dN/edRGes=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "zpcfywc2TZQksLugb6fWTN+/wu3aq6AoaNnzc+3V78w=";
|
cargoSha256 = "2nQE/5SPAaih4TunHgZHcYKPoAaA+4KDLxxcK0RLUgw=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "pathvector";
|
pname = "pathvector";
|
||||||
version = "5.11.1";
|
version = "5.12.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "natesales";
|
owner = "natesales";
|
||||||
repo = "pathvector";
|
repo = "pathvector";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-OgIDk+05bG2KrBQOyyMPaH0OJXU3gLM9OBab9lI+yXw=";
|
sha256 = "sha256-RdUZkkALEdyq+YKtgGE/P8eTX2v3fdYHF1wpZEyfkgY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-R3o1L34FXbtRzJ1I2Xj4iWsiFJJWexGWYv2TmvhINe0=";
|
vendorSha256 = "sha256-oxLMfmHLaOQwpRYwnHRQY0mIV5/fZ65RDgKVs0Kzd2Q=";
|
||||||
|
|
||||||
CGO_ENABLED = 0;
|
CGO_ENABLED = 0;
|
||||||
|
|
||||||
|
|
|
@ -33191,7 +33191,7 @@ with pkgs;
|
||||||
|
|
||||||
mcfm = callPackage ../applications/science/physics/MCFM {
|
mcfm = callPackage ../applications/science/physics/MCFM {
|
||||||
stdenv = gccStdenv;
|
stdenv = gccStdenv;
|
||||||
lhapdf = lhapdf.override { stdenv = gccStdenv; };
|
lhapdf = lhapdf.override { stdenv = gccStdenv; python = null; };
|
||||||
};
|
};
|
||||||
|
|
||||||
nnpdf = callPackage ../applications/science/physics/nnpdf { };
|
nnpdf = callPackage ../applications/science/physics/nnpdf { };
|
||||||
|
|
Loading…
Reference in a new issue