From 182945f2851d570f868125bbf17a3acc5dcfd84f Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Sun, 27 Dec 2020 19:14:39 -0500 Subject: [PATCH 01/37] python3Packages.pyerfa: init at 1.7.1.1 --- .../python-modules/pyerfa/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pyerfa/default.nix diff --git a/pkgs/development/python-modules/pyerfa/default.nix b/pkgs/development/python-modules/pyerfa/default.nix new file mode 100644 index 00000000000..26a61ddca54 --- /dev/null +++ b/pkgs/development/python-modules/pyerfa/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, isPy3k +, liberfa +, packaging +, numpy +}: + +buildPythonPackage rec { + pname = "pyerfa"; + format = "pyproject"; + version = "1.7.1.1"; + + doCheck = false; + + src = fetchPypi { + inherit pname version; + sha256 = "09i2qcsvxd3q04a5yaf6fwzg79paaslpksinan9d8smj7viql15i"; + }; + + nativeBuildInputs = [ packaging ]; + propagatedBuildInputs = [ liberfa numpy ]; + preBuild = '' + export PYERFA_USE_SYSTEM_LIBERFA=1 + ''; + + meta = with lib; { + description = "Python bindings for ERFA routines"; + longDescription = '' + PyERFA is the Python wrapper for the ERFA library (Essential Routines + for Fundamental Astronomy), a C library containing key algorithms for + astronomy, which is based on the SOFA library published by the + International Astronomical Union (IAU). All C routines are wrapped as + Numpy universal functions, so that they can be called with scalar or + array inputs. + ''; + homepage = "https://github.com/liberfa/pyerfa"; + license = licenses.bsd3; + maintainers = [ maintainers.rmcgibbo ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 440b53aaf2a..33d25521696 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5117,6 +5117,8 @@ in { pyepsg = callPackage ../development/python-modules/pyepsg { }; + pyerfa = callPackage ../development/python-modules/pyerfa { }; + pyexcel = callPackage ../development/python-modules/pyexcel { }; pyexcelerator = callPackage ../development/python-modules/pyexcelerator { }; From ebd7f86dd842c11c4e0699ccf4ff651e0c08ec86 Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Thu, 24 Dec 2020 18:46:06 -0500 Subject: [PATCH 02/37] tmuxPlugins.dracula: unstable-2020-12-2 -> unstable-2020-12-24 --- pkgs/misc/tmux-plugins/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/tmux-plugins/default.nix b/pkgs/misc/tmux-plugins/default.nix index 28ac5e6f91f..094d9f6c405 100644 --- a/pkgs/misc/tmux-plugins/default.nix +++ b/pkgs/misc/tmux-plugins/default.nix @@ -129,12 +129,12 @@ in rec { dracula = mkDerivation rec { pluginName = "dracula"; - version = "unstable-2020-12-2"; + version = "unstable-2020-12-28"; src = fetchFromGitHub { owner = "dracula"; repo = "tmux"; - rev = "cc310e585acbeaf3304eda662476f7f657010b01"; - sha256 = "003nbv2rz2ihyqf3ryvdwn43ly0gi5z2r0pnqr9s9vw8dmwx0r3x"; + rev = "6757a5329948f00addd66b02ea94f61dd94456f5"; + sha256 = "0wwwzg3bwcrbr2nmf84prz7k4i79yq0960vs6zjp0x8nqn2fvziy"; }; meta = with stdenv.lib; { homepage = "https://draculatheme.com/tmux"; From 7ef5a93fe1a3e69307b316484641fee7caed0ed4 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Sun, 27 Dec 2020 19:15:59 -0500 Subject: [PATCH 03/37] python3Packages.astropy-extension-helpers: init at 0.1 --- .../astropy-extension-helpers/default.nix | 31 ++++++++++++++ .../permissions.patch | 20 +++++++++ .../extension-helpers/default.nix | 41 ------------------- pkgs/top-level/python-packages.nix | 4 +- 4 files changed, 53 insertions(+), 43 deletions(-) create mode 100644 pkgs/development/python-modules/astropy-extension-helpers/default.nix create mode 100644 pkgs/development/python-modules/astropy-extension-helpers/permissions.patch delete mode 100644 pkgs/development/python-modules/extension-helpers/default.nix diff --git a/pkgs/development/python-modules/astropy-extension-helpers/default.nix b/pkgs/development/python-modules/astropy-extension-helpers/default.nix new file mode 100644 index 00000000000..bd9dca338fc --- /dev/null +++ b/pkgs/development/python-modules/astropy-extension-helpers/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "extension-helpers"; + version = "0.1"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"; + }; + + patches = [ ./permissions.patch ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ + "extension_helpers" + ]; + + meta = with lib; { + description = "Utilities for building and installing packages in the Astropy ecosystem"; + homepage = "https://github.com/astropy/extension-helpers"; + license = licenses.bsd3; + maintainers = [ maintainers.rmcgibbo ]; + }; +} diff --git a/pkgs/development/python-modules/astropy-extension-helpers/permissions.patch b/pkgs/development/python-modules/astropy-extension-helpers/permissions.patch new file mode 100644 index 00000000000..cef74b33603 --- /dev/null +++ b/pkgs/development/python-modules/astropy-extension-helpers/permissions.patch @@ -0,0 +1,20 @@ +diff --git a/extension_helpers/_setup_helpers.py b/extension_helpers/_setup_helpers.py +index ec3e547..e2419f7 100644 +--- a/extension_helpers/_setup_helpers.py ++++ b/extension_helpers/_setup_helpers.py +@@ -79,8 +79,13 @@ def get_extensions(srcdir='.'): + if len(ext_modules) > 0: + main_package_dir = min(packages, key=len) + src_path = os.path.join(os.path.dirname(__file__), 'src') +- shutil.copy(os.path.join(src_path, 'compiler.c'), +- os.path.join(srcdir, main_package_dir, '_compiler.c')) ++ a = os.path.join(src_path, 'compiler.c') ++ b = os.path.join(srcdir, main_package_dir, '_compiler.c') ++ try: ++ os.unlink(b) ++ except OSError: ++ pass ++ shutil.copy(a, b) + ext = Extension(main_package_dir + '.compiler_version', + [os.path.join(main_package_dir, '_compiler.c')]) + ext_modules.append(ext) diff --git a/pkgs/development/python-modules/extension-helpers/default.nix b/pkgs/development/python-modules/extension-helpers/default.nix deleted file mode 100644 index 0c23a69a89c..00000000000 --- a/pkgs/development/python-modules/extension-helpers/default.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, pytestCheckHook -, setuptools_scm -}: - -buildPythonPackage rec { - pname = "extension-helpers"; - version = "0.1"; - disabled = isPy27; - - src = fetchPypi { - inherit pname version; - sha256 = "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"; - }; - - nativeBuildInputs = [ - setuptools_scm - ]; - - propagatedBuildInputs = [ - pytestCheckHook - ]; - - # avoid importing local module - preCheck = '' - cd extension_helpers - ''; - - # assumes setup.py is in pwd - disabledTests = [ "compiler_module" ]; - - meta = with lib; { - description = "Helpers to assist with building packages with compiled C/Cython extensions"; - homepage = "https://github.com/astropy/extension-helpers"; - license = licenses.bsd3; - maintainers = [ ]; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 33d25521696..10bb3c52857 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -421,6 +421,8 @@ in { astropy-helpers = callPackage ../development/python-modules/astropy-helpers { }; + astropy-extension-helpers = callPackage ../development/python-modules/astropy-extension-helpers { }; + astroquery = callPackage ../development/python-modules/astroquery { }; asttokens = callPackage ../development/python-modules/asttokens { }; @@ -1997,8 +1999,6 @@ in { exifread = callPackage ../development/python-modules/exifread { }; - extension-helpers = callPackage ../development/python-modules/extension-helpers { }; - extras = callPackage ../development/python-modules/extras { }; eyeD3 = callPackage ../development/python-modules/eyed3 { }; From 8df2e7698436e684a41349545f5302a729b706b6 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Sun, 27 Dec 2020 19:16:28 -0500 Subject: [PATCH 04/37] python3Packages.astropy: unbreak --- .../python-modules/astropy/default.nix | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index 2fe59e53d9c..9ffcba63954 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -1,5 +1,6 @@ { lib , fetchPypi +, setuptools_scm , buildPythonPackage , isPy3k , cython @@ -8,11 +9,14 @@ , pytest , pytest-astropy , astropy-helpers +, astropy-extension-helpers +, pyerfa }: buildPythonPackage rec { pname = "astropy"; version = "4.2"; + format = "pyproject"; disabled = !isPy3k; # according to setup.py @@ -21,15 +25,12 @@ buildPythonPackage rec { sha256 = "2c194f8a429b8399de64a413a06881ea49f0525cabaa2d78fc132b9e970adc6a"; }; - nativeBuildInputs = [ astropy-helpers cython jinja2 ]; - - propagatedBuildInputs = [ numpy pytest ]; # yes it really has pytest in install_requires - + nativeBuildInputs = [ setuptools_scm astropy-helpers astropy-extension-helpers cython jinja2 ]; + propagatedBuildInputs = [ numpy pyerfa ]; checkInputs = [ pytest pytest-astropy ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" + preBuild = '' + export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" ''; # Tests must be run from the build directory. astropy/samp tests @@ -42,15 +43,14 @@ buildPythonPackage rec { ''; # 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s + # doCheck = false; doCheck = false; - meta = { + meta = with lib; { description = "Astronomy/Astrophysics library for Python"; homepage = "https://www.astropy.org"; - license = lib.licenses.bsd3; - platforms = lib.platforms.all; - maintainers = with lib.maintainers; [ kentjames ]; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = [ maintainers.kentjames ]; }; } - - From 545350f147daaa04485e22c0dfe1e725a1cc5cb2 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 13:08:50 -0500 Subject: [PATCH 05/37] python3Packages.astroquery: unbreak --- pkgs/development/python-modules/astroquery/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index e82dca3e955..f7764149a66 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -15,6 +15,7 @@ buildPythonPackage rec { pname = "astroquery"; version = "0.4.1"; + format = "pyproject"; src = fetchPypi { inherit pname version; @@ -31,11 +32,6 @@ buildPythonPackage rec { doCheck = false; checkInputs = [ pytest pytest-astropy ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; - # Tests must be run in the build directory. The tests create files # in $HOME/.astropy so we need to set HOME to $TMPDIR. checkPhase = '' From 39df1e526dc17f4a05a1619de0f5dcfefb9282a2 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 13:23:44 -0500 Subject: [PATCH 06/37] python3Packages.drms: unbreak --- pkgs/development/python-modules/drms/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/drms/default.nix b/pkgs/development/python-modules/drms/default.nix index 561ec9a7a98..613d2444d73 100644 --- a/pkgs/development/python-modules/drms/default.nix +++ b/pkgs/development/python-modules/drms/default.nix @@ -4,13 +4,15 @@ , numpy , pandas , six -, pytest -, python +, astropy +, pytestCheckHook +, pytest-doctestplus }: buildPythonPackage rec { pname = "drms"; version = "0.6.0"; + format = "pyproject"; src = fetchPypi { inherit pname version; @@ -24,13 +26,11 @@ buildPythonPackage rec { ]; checkInputs = [ - pytest + astropy + pytestCheckHook + pytest-doctestplus ]; - checkPhase = '' - ${python.interpreter} -m drms.tests - ''; - meta = with lib; { description = "Access HMI, AIA and MDI data with Python"; homepage = "https://github.com/sunpy/drms"; From 343015526efa16bfdbe294479b4deb83f986e3b7 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 13:33:33 -0500 Subject: [PATCH 07/37] python3Packages.asdf: unbreak --- pkgs/development/python-modules/asdf/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/asdf/default.nix b/pkgs/development/python-modules/asdf/default.nix index 474329ed0b7..4006a034d48 100644 --- a/pkgs/development/python-modules/asdf/default.nix +++ b/pkgs/development/python-modules/asdf/default.nix @@ -17,18 +17,13 @@ buildPythonPackage rec { pname = "asdf"; version = "2.7.1"; disabled = isPy27; + format = "pyproject"; src = fetchPypi { inherit pname version; sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a"; }; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \ - --replace "doctest_plus = enabled" "" - ''; - checkInputs = [ pytest-astropy astropy @@ -45,7 +40,7 @@ buildPythonPackage rec { ]; checkPhase = '' - pytest + PY_IGNORE_IMPORTMISMATCH=1 pytest ''; meta = with lib; { From 0cdd25eba30d1ba3a7fe0ee67b3ea91935998b14 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 13:49:17 -0500 Subject: [PATCH 08/37] python3Packages.sunpy: 1.0.6 -> 2.0.6 --- .../python-modules/sunpy/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index 6830c7c1343..6a455ce49eb 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -1,12 +1,12 @@ { stdenv , lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pythonOlder - , asdf , astropy , astropy-helpers +, astropy-extension-helpers , beautifulsoup4 , drms , glymur @@ -29,16 +29,18 @@ buildPythonPackage rec { pname = "sunpy"; - version = "1.0.6"; + version = "2.0.6"; disabled = pythonOlder "3.6"; - src = fetchFromGitHub { - owner = "sunpy"; - repo = pname; - rev = "v${version}"; - sha256 = "0j2yfhfxgi95rig8cfp9lvszb7694gq90jvs0xrb472hwnzgh2sk"; + src = fetchPypi { + inherit pname version; + sha256 = "109flghca42yhsm2w5xicqhyx1mc8c3vlwvadbn65fz3lhysqj67"; }; + nativeBuildInputs = [ + astropy-extension-helpers + ]; + propagatedBuildInputs = [ numpy scipy @@ -66,16 +68,11 @@ buildPythonPackage rec { pytest-mock ]; - preBuild = '' - export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" - export HOME=$(mktemp -d) - ''; - # darwin has write permission issues doCheck = stdenv.isLinux; # ignore documentation tests checkPhase = '' - pytest sunpy -k 'not rst' + PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst' ''; meta = with lib; { From f5dc54e7b6d6df29aab5812e3b985b9d2aeadada Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 14:27:06 -0500 Subject: [PATCH 09/37] python3Packages.reproject: unbreak --- .../python-modules/reproject/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index ccc76734461..8448f55f958 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -6,7 +6,7 @@ , astropy , astropy-healpix , astropy-helpers -, extension-helpers +, astropy-extension-helpers , scipy , pytest , pytest-astropy @@ -23,15 +23,16 @@ buildPythonPackage rec { sha256 = "1jsc3ad518vyys5987fr1achq8qvnz8rm80zp5an9qxlwr4zmh4m"; }; - propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ]; - - nativeBuildInputs = [ astropy-helpers cython extension-helpers setuptools_scm ]; - - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; + patches = [ (fetchpatch { + # Can be removed in next release after 0.7.1 + # See https://github.com/astropy/reproject/issues/246 + url = "https://github.com/astropy/reproject/pull/243.patch"; + sha256 = "0dq3ii39hsrks0b9v306dlqf07dx0hqad8rwajmzw6rfda9m3c2a"; + }) + ]; + propagatedBuildInputs = [ numpy astropy aqstropy-healpix astropy-helpers scipy ]; + nativeBuildInputs = [ astropy-helpers cyqthon astropy-extension-helpers setuptools_scm ]; checkInputs = [ pytest pytest-astropy ]; # Tests must be run in the build directory From 7a468478bce26e7c65abbee16a4bb3dbecd33c1d Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 14:50:25 -0500 Subject: [PATCH 10/37] python3Packages.aplpy: unbreak --- .../python-modules/aplpy/default.nix | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aplpy/default.nix b/pkgs/development/python-modules/aplpy/default.nix index a6eedb3b7a4..e253c610c21 100644 --- a/pkgs/development/python-modules/aplpy/default.nix +++ b/pkgs/development/python-modules/aplpy/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , numpy , astropy , astropy-helpers @@ -18,6 +19,7 @@ buildPythonPackage rec { pname = "aplpy"; version = "2.0.3"; + format = "pyproject"; src = fetchPypi { pname = "APLpy"; @@ -25,6 +27,15 @@ buildPythonPackage rec { sha256 = "239f3d83635ca4251536aeb577df7c60df77fc4d658097b92094719739aec3f3"; }; + patches = [ (fetchpatch { + # Can be removed in next release after 2.0.3 + url = "https://github.com/aplpy/aplpy/pull/448.patch"; + sha256 = "1pnzh7ykjc8hwahzbzyryrzv5a8fddgd1bmzbhagkrn6lmvhhpvq"; + excludes = [ "tox.ini" "azure-pipelines.yml" ".circleci/config.yml" "MANIFEST.in" ".gitignore" + "setup.cfg" "appveyor.yml" "readthedocs.yml" "CHANGES.rst" ".gitmodules" ".travis.yml" "astropy_helpers" ]; + }) + ]; + propagatedBuildInputs = [ numpy astropy @@ -38,18 +49,10 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ astropy-helpers ]; - checkInputs = [ pytest pytest-astropy ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; - - # Tests must be run in the build directory checkPhase = '' - cd build/lib - pytest + OPENMP_EXPECTED=0 pytest aplpy ''; meta = with lib; { From edbf7a37b13f136928f243c4f176bc0c4a519c31 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 14:50:43 -0500 Subject: [PATCH 11/37] python3Packages.reproject: unbreak --- pkgs/development/python-modules/reproject/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index 8448f55f958..98bed15cfa0 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -31,8 +31,8 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ numpy astropy aqstropy-healpix astropy-helpers scipy ]; - nativeBuildInputs = [ astropy-helpers cyqthon astropy-extension-helpers setuptools_scm ]; + propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ]; + nativeBuildInputs = [ astropy-helpers cython astropy-extension-helpers setuptools_scm ]; checkInputs = [ pytest pytest-astropy ]; # Tests must be run in the build directory From 0bba94bb4c7577a6f2b8056cf8bc8651b8b130ee Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 14:54:14 -0500 Subject: [PATCH 12/37] python3Packages.spectral-cube: 0.4.5 -> 0.5.0 --- .../python-modules/spectral-cube/default.nix | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix index b0b3e4b8f65..d2f79c18348 100644 --- a/pkgs/development/python-modules/spectral-cube/default.nix +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -1,7 +1,8 @@ { lib -, fetchFromGitHub +, fetchPypi , buildPythonPackage , aplpy +, joblib , astropy , radio_beam , pytest @@ -11,31 +12,20 @@ buildPythonPackage rec { pname = "spectral-cube"; - version = "0.4.5"; + version = "0.5.0"; + format = "pyproject"; - # Fetch from GitHub instead of PyPi, as 0.4.5 isn't available in PyPi - src = fetchFromGitHub { - owner = "radio-astro-tools"; - repo = pname; - rev = "v${version}"; - sha256 = "1xc1m6vpl0bm600fx9vypa7zcvwg7yvhgn0w89y6v9d1vl0qcs7z"; + src = fetchPypi { + inherit pname version; + sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki"; }; - propagatedBuildInputs = [ astropy radio_beam ]; - nativeBuildInputs = [ astropy-helpers ]; - + propagatedBuildInputs = [ astropy radio_beam joblib ]; checkInputs = [ aplpy pytest pytest-astropy ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; - - # Tests must be run in the build directory checkPhase = '' - cd build/lib - pytest + pytest spectral_cube ''; meta = { From d7ca8099bfa09e89914cfa4ba99adf41ccca25d6 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 28 Dec 2020 15:10:19 -0500 Subject: [PATCH 13/37] python3Packages.pytest-astropy-header: unbreak --- .../pytest-astropy-header/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/development/python-modules/pytest-astropy-header/default.nix b/pkgs/development/python-modules/pytest-astropy-header/default.nix index 05c6135a4b9..4b40280ed70 100644 --- a/pkgs/development/python-modules/pytest-astropy-header/default.nix +++ b/pkgs/development/python-modules/pytest-astropy-header/default.nix @@ -1,21 +1,36 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , pytest , pytestcov , pytestCheckHook , numpy , astropy +, scipy +, h5py +, scikitimage }: buildPythonPackage rec { pname = "pytest-astropy-header"; version = "0.1.2"; + format = "pyproject"; src = fetchPypi { inherit pname version; sha256 = "1y87agr324p6x5gvhziymxjlw54pyn4gqnd49papbl941djpkp5g"; }; + patches = [ (fetchpatch { + url = "https://github.com/astropy/pytest-astropy-header/pull/16.patch"; + sha256 = "11ln63zq0kgsdx1jw3prlzpcdbxmc99p9cwr18s0x6apy0k6df31"; + }) + (fetchpatch { + url = "https://github.com/astropy/pytest-astropy-header/pull/29.patch"; + sha256 = "18l434c926r5z1iq3b6lpnp0lrssszars9y1y9hs6216r60jgjpl"; + }) + ]; + propagatedBuildInputs = [ pytest @@ -25,6 +40,9 @@ buildPythonPackage rec { pytestCheckHook pytestcov numpy + scipy + h5py + scikitimage astropy ]; From 29922fa77256545f0c5972a46eadbe04862e716b Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sat, 26 Dec 2020 12:59:38 -0300 Subject: [PATCH 14/37] opentabletdriver: init at 0.4.2 --- pkgs/tools/X11/opentabletdriver/default.nix | 152 +++++++ pkgs/tools/X11/opentabletdriver/deps.nix | 462 ++++++++++++++++++++ pkgs/tools/X11/opentabletdriver/shell.nix | 12 + pkgs/tools/X11/opentabletdriver/update.sh | 64 +++ pkgs/top-level/all-packages.nix | 5 + 5 files changed, 695 insertions(+) create mode 100644 pkgs/tools/X11/opentabletdriver/default.nix create mode 100644 pkgs/tools/X11/opentabletdriver/deps.nix create mode 100644 pkgs/tools/X11/opentabletdriver/shell.nix create mode 100755 pkgs/tools/X11/opentabletdriver/update.sh diff --git a/pkgs/tools/X11/opentabletdriver/default.nix b/pkgs/tools/X11/opentabletdriver/default.nix new file mode 100644 index 00000000000..6f8f9e44cc4 --- /dev/null +++ b/pkgs/tools/X11/opentabletdriver/default.nix @@ -0,0 +1,152 @@ +{ stdenv +, lib +, fetchFromGitHub +, fetchurl +, makeWrapper +, linkFarmFromDrvs +, dotnet-netcore +, dotnet-sdk +, dotnetPackages +, dpkg +, gtk3 +, libX11 +, libXrandr +, libappindicator +, libevdev +, libnotify +, udev +, makeDesktopItem +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "OpenTabletDriver"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "InfinityGhost"; + repo = "OpenTabletDriver"; + rev = "v${version}"; + sha256 = "048y7gjlk2yw4vh62px1d9w0va6ap1a0cndcpbirlyj9q6b8jxax"; + }; + + debPkg = fetchurl { + url = "https://github.com/InfinityGhost/OpenTabletDriver/releases/download/v${version}/OpenTabletDriver.deb"; + sha256 = "13gg0dhvjy88h9lhcrp30fjiwgb9dzjsgk1k760pi1ki71a5vz2r"; + }; + + nativeBuildInputs = [ + dotnet-sdk + dotnetPackages.Nuget + dpkg + makeWrapper + wrapGAppsHook + ]; + + nugetDeps = linkFarmFromDrvs "${pname}-nuget-deps" (import ./deps.nix { + fetchNuGet = { name, version, sha256 }: fetchurl { + name = "nuget-${name}-${version}.nupkg"; + url = "https://www.nuget.org/api/v2/package/${name}/${version}"; + inherit sha256; + }; + }); + + runtimeDeps = [ + gtk3 + libX11 + libXrandr + libappindicator + libevdev + libnotify + udev + ]; + + configurePhase = '' + export HOME=$(mktemp -d) + export DOTNET_CLI_TELEMETRY_OPTOUT=1 + export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 + + nuget sources Add -Name nixos -Source "$PWD/nixos" + nuget init "$nugetDeps" "$PWD/nixos" + + # FIXME: https://github.com/NuGet/Home/issues/4413 + mkdir -p $HOME/.nuget/NuGet + cp $HOME/.config/NuGet/NuGet.Config $HOME/.nuget/NuGet + + for project in OpenTabletDriver.{Console,Daemon,UX.Gtk}; do + dotnet restore --source "$PWD/nixos" $project + done + ''; + + buildPhase = '' + for project in OpenTabletDriver.{Console,Daemon,UX.Gtk}; do + dotnet build $project \ + --no-restore \ + --configuration Release \ + --framework net5 + done + ''; + + installPhase = '' + mkdir -p $out/lib/OpenTabletDriver/ + cp -r ./OpenTabletDriver/Configurations/ $out/lib/OpenTabletDriver/ + + for project in OpenTabletDriver.{Console,Daemon,UX.Gtk}; do + dotnet publish $project \ + --no-build \ + --no-self-contained \ + --configuration Release \ + --framework net5 \ + --output $out/lib + done + + # Give a more "*nix" name to the binaries + makeWrapper $out/lib/OpenTabletDriver.Console $out/bin/otd \ + "''${gappsWrapperArgs[@]}" \ + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ + --set DOTNET_ROOT "${dotnet-netcore}" \ + --suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" + + makeWrapper $out/lib/OpenTabletDriver.Daemon $out/bin/otd-daemon \ + "''${gappsWrapperArgs[@]}" \ + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ + --set DOTNET_ROOT "${dotnet-netcore}" \ + --suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" + + makeWrapper $out/lib/OpenTabletDriver.UX.Gtk $out/bin/otd-gui \ + "''${gappsWrapperArgs[@]}" \ + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ + --set DOTNET_ROOT "${dotnet-netcore}" \ + --suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" + + mkdir -p $out/share/{applications,pixmaps} + + cp -r $src/OpenTabletDriver.UX/Assets/* $out/share/pixmaps + + cp -r ${makeDesktopItem { + desktopName = "OpenTabletDriver"; + name = "OpenTabletDriver"; + exec = "otd-gui"; + icon = "otd"; + comment = meta.description; + type = "Application"; + categories = "Utility;"; + }}/share/applications/* $out/share/applications + + # TODO: Ideally this should be build from OpenTabletDriver/OpenTabletDriver-udev instead + dpkg-deb --fsys-tarfile ${debPkg} | tar xf - ./usr/lib/udev/rules.d/30-opentabletdriver.rules + mkdir -p $out/lib/udev/rules.d + cp ./usr/lib/udev/rules.d/* $out/lib/udev/rules.d + ''; + + dontWrapGApps = true; + dontStrip = true; + + meta = with lib; { + description = "Open source, cross-platform, user-mode tablet driver"; + homepage = "https://github.com/InfinityGhost/OpenTabletDriver"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ thiagokokada ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/X11/opentabletdriver/deps.nix b/pkgs/tools/X11/opentabletdriver/deps.nix new file mode 100644 index 00000000000..34d2981cff5 --- /dev/null +++ b/pkgs/tools/X11/opentabletdriver/deps.nix @@ -0,0 +1,462 @@ +{ fetchNuGet }: [ + (fetchNuGet { + name = "AtkSharp"; + version = "3.22.25.74"; + sha256 = "04zjpjrddw5clac0mjpk0q00rbmv45bh1bsqa4s3pc5pb7fm9cd9"; + }) + (fetchNuGet { + name = "CairoSharp"; + version = "3.22.25.74"; + sha256 = "0sx7vmwcrfbkg3g887v051iklcdmdhh43ndp96nk4bccjimmmwl6"; + }) + (fetchNuGet { + name = "Eto.Forms"; + version = "2.5.6"; + sha256 = "035ny8jlanchwq16gcq0xb6ywabjl71c7qbpv26sjwg96na8vz51"; + }) + (fetchNuGet { + name = "Eto.Platform.Gtk"; + version = "2.5.6"; + sha256 = "1ijkjd3lc7x59yk369kxipzgk1zhyr9g6k319wc0n033vij26mwl"; + }) + (fetchNuGet { + name = "GdkSharp"; + version = "3.22.25.74"; + sha256 = "07sdfvqk2jmyjj7fyd0mikhnzsk52zd3g2dhip8kz3006cczqm81"; + }) + (fetchNuGet { + name = "GioSharp"; + version = "3.22.25.74"; + sha256 = "01l4216bm5jxbxypkkq4d2527c6zd68kbywr3h1lr1darc9nf1d1"; + }) + (fetchNuGet { + name = "GLibSharp"; + version = "3.22.25.74"; + sha256 = "0k2p79z4wcswi528v0ykc37rsqfqi6xd6pl0j4csdj9zf19svgx2"; + }) + (fetchNuGet { + name = "GtkSharp"; + version = "3.22.25.74"; + sha256 = "0vazfvkjyzppcynqa1h70s1jmp4vq2j30v5x2scg8n2c5dxaj0k3"; + }) + (fetchNuGet { + name = "HidSharpCore"; + version = "1.1.0"; + sha256 = "122s5j3wrv8hcgnbxrnjqydvcfz7gdm8xq0wlwzrgwdjk44lr45a"; + }) + (fetchNuGet { + name = "MessagePack.Annotations"; + version = "2.1.194"; + sha256 = "1jkhq3hiy4brvzsywl4p4jb9jrnzs3vmgr3s8fxpb1dzafadw8b0"; + }) + (fetchNuGet { + name = "MessagePack"; + version = "2.1.194"; + sha256 = "1v2gyd9sd6hppfhlzngmzzhnpr39b95rwrqq0r9zzp480b6vzaj0"; + }) + (fetchNuGet { + name = "Microsoft.Bcl.AsyncInterfaces"; + version = "1.1.1"; + sha256 = "0a1ahssqds2ympr7s4xcxv5y8jgxs7ahd6ah6fbgglj4rki1f1vw"; + }) + (fetchNuGet { + name = "Microsoft.CSharp"; + version = "4.4.1"; + sha256 = "0z6d1i6xcf0c00z6rs75rgw4ncs9q2m8amasf6mmbf40fm02ry7g"; + }) + (fetchNuGet { + name = "Microsoft.NETCore.Platforms"; + version = "1.1.0"; + sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; + }) + (fetchNuGet { + name = "Microsoft.NETCore.Platforms"; + version = "1.1.1"; + sha256 = "164wycgng4mi9zqi2pnsf1pq6gccbqvw6ib916mqizgjmd8f44pj"; + }) + (fetchNuGet { + name = "Microsoft.NETCore.Platforms"; + version = "3.0.0"; + sha256 = "1bk8r4r3ihmi6322jmcag14jmw11mjqys202azqjzglcx59pxh51"; + }) + (fetchNuGet { + name = "Microsoft.NETCore.Targets"; + version = "1.1.0"; + sha256 = "193xwf33fbm0ni3idxzbr5fdq3i2dlfgihsac9jj7whj0gd902nh"; + }) + (fetchNuGet { + name = "Microsoft.VisualStudio.Threading.Analyzers"; + version = "16.7.56"; + sha256 = "04v9df0k7bsc0rzgkw4mnvi43pdrh42vk6xdcwn9m6im33m0nnz2"; + }) + (fetchNuGet { + name = "Microsoft.VisualStudio.Threading"; + version = "16.7.56"; + sha256 = "13x0xrsjxd86clf9cjjwmpzlyp8pkrf13riya7igs8zy93zw2qap"; + }) + (fetchNuGet { + name = "Microsoft.VisualStudio.Validation"; + version = "15.5.31"; + sha256 = "1ah99rn922qa0sd2k3h64m324f2r32pw8cn4cfihgvwx4qdrpmgw"; + }) + (fetchNuGet { + name = "Microsoft.Win32.Primitives"; + version = "4.3.0"; + sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; + }) + (fetchNuGet { + name = "Microsoft.Win32.Registry"; + version = "4.6.0"; + sha256 = "0i4y782yrqqyx85pg597m20gm0v126w0j9ddk5z7xb3crx4z9f2s"; + }) + (fetchNuGet { + name = "Nerdbank.Streams"; + version = "2.6.77"; + sha256 = "13dnfwxa8syx7vfjmd5pcrqz31k0q8y3mmh6yz6bmljhjri65q5c"; + }) + (fetchNuGet { + name = "Newtonsoft.Json"; + version = "12.0.2"; + sha256 = "0w2fbji1smd2y7x25qqibf1qrznmv4s6s0jvrbvr6alb7mfyqvh5"; + }) + (fetchNuGet { + name = "Newtonsoft.Json"; + version = "12.0.3"; + sha256 = "17dzl305d835mzign8r15vkmav2hq8l6g7942dfjpnzr17wwl89x"; + }) + (fetchNuGet { + name = "PangoSharp"; + version = "3.22.25.74"; + sha256 = "172i1hjpz4rgqlilir8a57kgmciw9x0shz4zwbhhlr59mndvqbih"; + }) + (fetchNuGet { + name = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "0rwpqngkqiapqc5c2cpkj7idhngrgss5qpnqg0yh40mbyflcxf8i"; + }) + (fetchNuGet { + name = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "1n06gxwlinhs0w7s8a94r1q3lwqzvynxwd3mp10ws9bg6gck8n4r"; + }) + (fetchNuGet { + name = "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "0404wqrc7f2yc0wxv71y3nnybvqx8v4j9d47hlscxy759a525mc3"; + }) + (fetchNuGet { + name = "runtime.native.System.Net.Http"; + version = "4.3.0"; + sha256 = "1n6rgz5132lcibbch1qlf0g9jk60r0kqv087hxc0lisy50zpm7kk"; + }) + (fetchNuGet { + name = "runtime.native.System.Security.Cryptography.Apple"; + version = "4.3.0"; + sha256 = "1b61p6gw1m02cc1ry996fl49liiwky6181dzr873g9ds92zl326q"; + }) + (fetchNuGet { + name = "runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "0zy5r25jppz48i2bkg8b9lfig24xixg6nm3xyr1379zdnqnpm8f6"; + }) + (fetchNuGet { + name = "runtime.native.System"; + version = "4.3.0"; + sha256 = "15hgf6zaq9b8br2wi1i3x0zvmk410nlmsmva9p0bbg73v6hml5k4"; + }) + (fetchNuGet { + name = "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "096ch4n4s8k82xga80lfmpimpzahd2ip1mgwdqgar0ywbbl6x438"; + }) + (fetchNuGet { + name = "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "1dm8fifl7rf1gy7lnwln78ch4rw54g0pl5g1c189vawavll7p6rj"; + }) + (fetchNuGet { + name = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple"; + version = "4.3.0"; + sha256 = "10yc8jdrwgcl44b4g93f1ds76b176bajd3zqi2faf5rvh1vy9smi"; + }) + (fetchNuGet { + name = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "1m9z1k9kzva9n9kwinqxl97x2vgl79qhqjlv17k9s2ymcyv2bwr6"; + }) + (fetchNuGet { + name = "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "1cpx56mcfxz7cpn57wvj18sjisvzq8b5vd9rw16ihd2i6mcp3wa1"; + }) + (fetchNuGet { + name = "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "15gsm1a8jdmgmf8j5v1slfz8ks124nfdhk2vxs2rw3asrxalg8hi"; + }) + (fetchNuGet { + name = "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "0q0n5q1r1wnqmr5i5idsrd9ywl33k0js4pngkwq9p368mbxp8x1w"; + }) + (fetchNuGet { + name = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.2"; + sha256 = "1x0g58pbpjrmj2x2qw17rdwwnrcl0wvim2hdwz48lixvwvp22n9c"; + }) + (fetchNuGet { + name = "StreamJsonRpc"; + version = "2.6.121"; + sha256 = "0xzvpk17w2skndzdg47j7gkrrvw6521db4mv8lc3v8hm97vs9m76"; + }) + (fetchNuGet { + name = "System.Collections.Concurrent"; + version = "4.3.0"; + sha256 = "0wi10md9aq33jrkh2c24wr2n9hrpyamsdhsxdcnf43b7y86kkii8"; + }) + (fetchNuGet { + name = "System.Collections.Immutable"; + version = "1.7.1"; + sha256 = "1nh4nlxfc7lbnbl86wwk1a3jwl6myz5j6hvgh5sp4krim9901hsq"; + }) + (fetchNuGet { + name = "System.Collections"; + version = "4.3.0"; + sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9"; + }) + (fetchNuGet { + name = "System.CommandLine"; + version = "2.0.0-beta1.20253.1"; + sha256 = "16saf1fm9q80bb624fkqz0ksrwpnbw9617d7xg3jib7a2wgagm2r"; + }) + (fetchNuGet { + name = "System.CommandLine"; + version = "2.0.0-beta1.20303.1"; + sha256 = "0isnz8ipqlqim06hf56zlaq2vnsy5facvf5nvq6kzm5h1dm3l2vn"; + }) + (fetchNuGet { + name = "System.ComponentModel.Annotations"; + version = "4.7.0"; + sha256 = "06x1m46ddxj0ng28d7gry9gjkqdg2kp89jyf480g5gznyybbs49z"; + }) + (fetchNuGet { + name = "System.Diagnostics.Debug"; + version = "4.3.0"; + sha256 = "00yjlf19wjydyr6cfviaph3vsjzg3d5nvnya26i2fvfg53sknh3y"; + }) + (fetchNuGet { + name = "System.Diagnostics.DiagnosticSource"; + version = "4.3.0"; + sha256 = "0z6m3pbiy0qw6rn3n209rrzf9x1k4002zh90vwcrsym09ipm2liq"; + }) + (fetchNuGet { + name = "System.Diagnostics.Tracing"; + version = "4.3.0"; + sha256 = "1m3bx6c2s958qligl67q7grkwfz3w53hpy7nc97mh6f7j5k168c4"; + }) + (fetchNuGet { + name = "System.Globalization.Calendars"; + version = "4.3.0"; + sha256 = "1xwl230bkakzzkrggy1l1lxmm3xlhk4bq2pkv790j5lm8g887lxq"; + }) + (fetchNuGet { + name = "System.Globalization.Extensions"; + version = "4.3.0"; + sha256 = "02a5zfxavhv3jd437bsncbhd2fp1zv4gxzakp1an9l6kdq1mcqls"; + }) + (fetchNuGet { + name = "System.Globalization"; + version = "4.3.0"; + sha256 = "1cp68vv683n6ic2zqh2s1fn4c2sd87g5hpp6l4d4nj4536jz98ki"; + }) + (fetchNuGet { + name = "System.IO.FileSystem.Primitives"; + version = "4.3.0"; + sha256 = "0j6ndgglcf4brg2lz4wzsh1av1gh8xrzdsn9f0yznskhqn1xzj9c"; + }) + (fetchNuGet { + name = "System.IO.FileSystem"; + version = "4.3.0"; + sha256 = "0z2dfrbra9i6y16mm9v1v6k47f0fm617vlb7s5iybjjsz6g1ilmw"; + }) + (fetchNuGet { + name = "System.IO.Pipelines"; + version = "4.7.2"; + sha256 = "16v4qaypm72cfsfqr8z3k6yrpzn0m3apgkh6aljfwpycdk150sf9"; + }) + (fetchNuGet { + name = "System.IO"; + version = "4.3.0"; + sha256 = "05l9qdrzhm4s5dixmx68kxwif4l99ll5gqmh7rqgw554fx0agv5f"; + }) + (fetchNuGet { + name = "System.Linq"; + version = "4.3.0"; + sha256 = "1w0gmba695rbr80l1k2h4mrwzbzsyfl2z4klmpbsvsg5pm4a56s7"; + }) + (fetchNuGet { + name = "System.Memory"; + version = "4.5.3"; + sha256 = "0naqahm3wljxb5a911d37mwjqjdxv9l0b49p5dmfyijvni2ppy8a"; + }) + (fetchNuGet { + name = "System.Memory"; + version = "4.5.4"; + sha256 = "14gbbs22mcxwggn0fcfs1b062521azb9fbb7c113x0mq6dzq9h6y"; + }) + (fetchNuGet { + name = "System.Net.Http"; + version = "4.3.4"; + sha256 = "0kdp31b8819v88l719j6my0yas6myv9d1viql3qz5577mv819jhl"; + }) + (fetchNuGet { + name = "System.Net.Primitives"; + version = "4.3.0"; + sha256 = "0c87k50rmdgmxx7df2khd9qj7q35j9rzdmm2572cc55dygmdk3ii"; + }) + (fetchNuGet { + name = "System.Net.WebSockets"; + version = "4.3.0"; + sha256 = "1gfj800078kggcgl0xyl00a6y5k4wwh2k2qm69rjy22wbmq7fy4p"; + }) + (fetchNuGet { + name = "System.Numerics.Vectors"; + version = "4.5.0"; + sha256 = "1kzrj37yzawf1b19jq0253rcs8hsq1l2q8g69d7ipnhzb0h97m59"; + }) + (fetchNuGet { + name = "System.Reflection.Emit.Lightweight"; + version = "4.6.0"; + sha256 = "0hry2k6b7kicg4zxnq0hhn0ys52711pxy7l9v5sp7gvp9cicwpgp"; + }) + (fetchNuGet { + name = "System.Reflection.Emit"; + version = "4.7.0"; + sha256 = "121l1z2ypwg02yz84dy6gr82phpys0njk7yask3sihgy214w43qp"; + }) + (fetchNuGet { + name = "System.Reflection.Primitives"; + version = "4.3.0"; + sha256 = "04xqa33bld78yv5r93a8n76shvc8wwcdgr1qvvjh959g3rc31276"; + }) + (fetchNuGet { + name = "System.Reflection"; + version = "4.3.0"; + sha256 = "0xl55k0mw8cd8ra6dxzh974nxif58s3k1rjv1vbd7gjbjr39j11m"; + }) + (fetchNuGet { + name = "System.Resources.ResourceManager"; + version = "4.3.0"; + sha256 = "0sjqlzsryb0mg4y4xzf35xi523s4is4hz9q4qgdvlvgivl7qxn49"; + }) + (fetchNuGet { + name = "System.Runtime.CompilerServices.Unsafe"; + version = "4.5.2"; + sha256 = "1vz4275fjij8inf31np78hw50al8nqkngk04p3xv5n4fcmf1grgi"; + }) + (fetchNuGet { + name = "System.Runtime.CompilerServices.Unsafe"; + version = "4.7.1"; + sha256 = "119br3pd85lq8zcgh4f60jzmv1g976q1kdgi3hvqdlhfbw6siz2j"; + }) + (fetchNuGet { + name = "System.Runtime.Extensions"; + version = "4.3.0"; + sha256 = "1ykp3dnhwvm48nap8q23893hagf665k0kn3cbgsqpwzbijdcgc60"; + }) + (fetchNuGet { + name = "System.Runtime.Handles"; + version = "4.3.0"; + sha256 = "0sw2gfj2xr7sw9qjn0j3l9yw07x73lcs97p8xfc9w1x9h5g5m7i8"; + }) + (fetchNuGet { + name = "System.Runtime.InteropServices"; + version = "4.3.0"; + sha256 = "00hywrn4g7hva1b2qri2s6rabzwgxnbpw9zfxmz28z09cpwwgh7j"; + }) + (fetchNuGet { + name = "System.Runtime.Numerics"; + version = "4.3.0"; + sha256 = "19rav39sr5dky7afygh309qamqqmi9kcwvz3i0c5700v0c5cg61z"; + }) + (fetchNuGet { + name = "System.Runtime"; + version = "4.3.0"; + sha256 = "066ixvgbf2c929kgknshcxqj6539ax7b9m570cp8n179cpfkapz7"; + }) + (fetchNuGet { + name = "System.Security.AccessControl"; + version = "4.6.0"; + sha256 = "1wl1dyghi0qhpap1vgfhg2ybdyyhy9vc2a7dpm1xb30vfgmlkjmf"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.Algorithms"; + version = "4.3.0"; + sha256 = "03sq183pfl5kp7gkvq77myv7kbpdnq3y0xj7vi4q1kaw54sny0ml"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.Cng"; + version = "4.3.0"; + sha256 = "1k468aswafdgf56ab6yrn7649kfqx2wm9aslywjam1hdmk5yypmv"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.Csp"; + version = "4.3.0"; + sha256 = "1x5wcrddf2s3hb8j78cry7yalca4lb5vfnkrysagbn6r9x6xvrx1"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.Encoding"; + version = "4.3.0"; + sha256 = "1jr6w70igqn07k5zs1ph6xja97hxnb3mqbspdrff6cvssgrixs32"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0givpvvj8yc7gv4lhb6s1prq6p2c4147204a0wib89inqzd87gqc"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.Primitives"; + version = "4.3.0"; + sha256 = "0pyzncsv48zwly3lw4f2dayqswcfvdwq2nz0dgwmi7fj3pn64wby"; + }) + (fetchNuGet { + name = "System.Security.Cryptography.X509Certificates"; + version = "4.3.0"; + sha256 = "0valjcz5wksbvijylxijjxb1mp38mdhv03r533vnx1q3ikzdav9h"; + }) + (fetchNuGet { + name = "System.Security.Principal.Windows"; + version = "4.6.0"; + sha256 = "1jmfzfz1n8hp63s5lja5xxpzkinbp6g59l3km9h8avjiisdrg5wm"; + }) + (fetchNuGet { + name = "System.Text.Encoding"; + version = "4.3.0"; + sha256 = "1f04lkir4iladpp51sdgmis9dj4y8v08cka0mbmsy0frc9a4gjqr"; + }) + (fetchNuGet { + name = "System.Threading.Tasks.Dataflow"; + version = "4.11.1"; + sha256 = "09fbfsiay1xcbpvnq2j38b6mb2scvf0s8mpn78bcqsldidg7k2vw"; + }) + (fetchNuGet { + name = "System.Threading.Tasks.Extensions"; + version = "4.5.4"; + sha256 = "0y6ncasgfcgnjrhynaf0lwpkpkmv4a07sswwkwbwb5h7riisj153"; + }) + (fetchNuGet { + name = "System.Threading.Tasks"; + version = "4.3.0"; + sha256 = "134z3v9abw3a6jsw17xl3f6hqjpak5l682k2vz39spj4kmydg6k7"; + }) + (fetchNuGet { + name = "System.Threading"; + version = "4.3.0"; + sha256 = "0rw9wfamvhayp5zh3j7p1yfmx9b5khbf4q50d8k5rk993rskfd34"; + }) + (fetchNuGet { + name = "WaylandNET"; + version = "0.2.0"; + sha256 = "1qjpvra08vdqdw4j1gamz6451x5sd5r1j86lsvrl8akq4nymfr8k"; + }) +] diff --git a/pkgs/tools/X11/opentabletdriver/shell.nix b/pkgs/tools/X11/opentabletdriver/shell.nix new file mode 100644 index 00000000000..526fa4a4432 --- /dev/null +++ b/pkgs/tools/X11/opentabletdriver/shell.nix @@ -0,0 +1,12 @@ +{ pkgs ? import ../../../../. {} }: + +with pkgs; + +mkShell { + buildInputs = [ + common-updater-scripts + curl + dotnetCorePackages.sdk_5_0 + jq + ]; +} diff --git a/pkgs/tools/X11/opentabletdriver/update.sh b/pkgs/tools/X11/opentabletdriver/update.sh new file mode 100755 index 00000000000..04fae30c05a --- /dev/null +++ b/pkgs/tools/X11/opentabletdriver/update.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env nix-shell +#!nix-shell shell.nix -i bash + +set -eo pipefail + +cd "$(dirname "${BASH_SOURCE[0]}")" + +deps_file="$(realpath "./deps.nix")" + +new_version="$(curl -s "https://api.github.com/repos/InfinityGhost/OpenTabletDriver/releases" | jq -r '.[0].tag_name' | sed 's|[^0-9.]||g')" +old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)" +if [[ "$new_version" == "$old_version" ]]; then + echo "Up to date" + [[ "${1}" != "--force" ]] && exit 0 +fi + +cd ../../../.. +update-source-version opentabletdriver "$new_version" +store_src="$(nix-build . -A opentabletdriver.src --no-out-link)" +src="$(mktemp -d /tmp/opentabletdriver-src.XXX)" +echo "Temp src dir: $src" +cp -rT "$store_src" "$src" +chmod -R +w "$src" + +pushd "$src" + +# Setup empty nuget package folder to force reinstall. +mkdir ./nuget_tmp.packages +cat >./nuget_tmp.config < + + + + + + + + +EOF + +export DOTNET_CLI_TELEMETRY_OPTOUT=1 + +for project in OpenTabletDriver.{Console,Daemon,UX.Gtk}; do + dotnet restore $project --configfile ./nuget_tmp.config +done + +echo "{ fetchNuGet }: [" >"$deps_file" +while read pkg_spec; do + { read pkg_name; read pkg_version; } < <( + # Build version part should be ignored: `3.0.0-beta2.20059.3+77df2220` -> `3.0.0-beta2.20059.3` + sed -nE 's/.*([^<]*).*/\1/p; s/.*([^<+]*).*/\1/p' "$pkg_spec") + pkg_sha256="$(nix-hash --type sha256 --flat --base32 "$(dirname "$pkg_spec")"/*.nupkg)" + cat >>"$deps_file" <>"$deps_file" + +popd +rm -r "$src" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 930189a63ba..9eeaada15bb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23378,6 +23378,11 @@ in libtiff = callPackage ../applications/graphics/opentoonz/libtiff.nix { }; })).callPackage ../applications/graphics/opentoonz { }; + opentabletdriver = callPackage ../tools/X11/opentabletdriver { + dotnet-sdk = dotnetCorePackages.sdk_5_0; + dotnet-netcore = dotnetCorePackages.net_5_0; + }; + opentx = libsForQt5.callPackage ../applications/misc/opentx { }; opera = callPackage ../applications/networking/browsers/opera {}; From 2a1fcb02eb8d8c589f851b49f4e8b59a0e2d2eec Mon Sep 17 00:00:00 2001 From: Dyazz Date: Mon, 28 Dec 2020 00:09:32 +0100 Subject: [PATCH 15/37] duplicacy: 2.3.0 -> 2.7.2 --- pkgs/tools/backup/duplicacy/default.nix | 4 +- pkgs/tools/backup/duplicacy/deps.nix | 188 ++++++++++++++++-------- 2 files changed, 132 insertions(+), 60 deletions(-) diff --git a/pkgs/tools/backup/duplicacy/default.nix b/pkgs/tools/backup/duplicacy/default.nix index b261289f0bf..9fecfb70f39 100644 --- a/pkgs/tools/backup/duplicacy/default.nix +++ b/pkgs/tools/backup/duplicacy/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { pname = "duplicacy"; - version = "2.3.0"; + version = "2.7.2"; goPackagePath = "github.com/gilbertchen/duplicacy"; @@ -10,7 +10,7 @@ buildGoPackage rec { owner = "gilbertchen"; repo = "duplicacy"; rev = "v${version}"; - sha256 = "12swp3kbwkmwn3g2mp964m60kabmz0ip7kkhvhiqq7k74nxzj312"; + sha256 = "0j37sqicj7rl982czqsl3ipxw7k8k4smcr63s0yklxwz7ch3353c"; }; goDeps = ./deps.nix; buildPhase = '' diff --git a/pkgs/tools/backup/duplicacy/deps.nix b/pkgs/tools/backup/duplicacy/deps.nix index 12d30b53b6c..e7bf7e91f89 100644 --- a/pkgs/tools/backup/duplicacy/deps.nix +++ b/pkgs/tools/backup/duplicacy/deps.nix @@ -4,27 +4,18 @@ goPackagePath = "cloud.google.com/go"; fetch = { type = "git"; - url = "https://code.googlesource.com/gocloud"; + url = "https://github.com/googleapis/google-cloud-go"; rev = "2d3a6656c17a60b0815b7e06ab0be04eacb6e613"; sha256 = "0fi3qj9fvc4bxbrwa1m5sxsb8yhvawiwigaddvmmizjykxbq5csq"; }; } - { - goPackagePath = "github.com/Azure/azure-sdk-for-go"; - fetch = { - type = "git"; - url = "https://github.com/Azure/azure-sdk-for-go"; - rev = "b7fadebe0e7f5c5720986080a01495bd8d27be37"; - sha256 = "11zcmd17206byxhgz2a75qascilydlzjbz73l2mrqng3yyr20yk1"; - }; - } { goPackagePath = "github.com/Azure/go-autorest"; fetch = { type = "git"; url = "https://github.com/Azure/go-autorest"; - rev = "0ae36a9e544696de46fdadb7b0d5fb38af48c063"; - sha256 = "0f2qcv24l9bx3jys2m9ycyy77vqlx7dbfa3frxlk19wnrwiv3p6g"; + rev = "9bc4033dd347c7f416fca46b2f42a043dc1fbdf6"; + sha256 = "158xbd8wn1bna1k1ichlirz6a1zvlh3rg7klr9cnp72l2q8jwvcl"; }; } { @@ -41,8 +32,8 @@ fetch = { type = "git"; url = "https://github.com/aws/aws-sdk-go"; - rev = "a32b1dcd091264b5dee7b386149b6cc3823395c9"; - sha256 = "1yicb7l6m4hs3mi724hz74wn8305qvx6g73mjqafaaqvh6dyn86m"; + rev = "851d5ffb66720c2540cc68020d4d8708950686c8"; + sha256 = "16qp8ywcf04d2y1ibf3mpglcrxk07x8gak46a2l53lchps2mgcrp"; }; } { @@ -59,8 +50,8 @@ fetch = { type = "git"; url = "https://github.com/dgrijalva/jwt-go"; - rev = "dbeaa9332f19a944acb5736b4456cfcc02140e29"; - sha256 = "0zk6l6kzsjdijfn7c4h0aywdjx5j2hjwi67vy1k6wr46hc8ks2hs"; + rev = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"; + sha256 = "08m27vlms74pfy5z79w67f9lk9zkx6a9jd68k3c4msxy75ry36mp"; }; } { @@ -68,8 +59,8 @@ fetch = { type = "git"; url = "https://github.com/gilbertchen/azure-sdk-for-go"; - rev = "bbf89bd4d716c184f158d1e1428c2dbef4a18307"; - sha256 = "14563izc2y05k8s20fmhanvjydbcq8k5adp4cgw91d9bs52qivx7"; + rev = "8fd4663cab7c7c1c46d00449291c92ad23b0d0d9"; + sha256 = "123fj5jni1pjj8i9adzd4r07n9hnlmfprlcjf5hqb1zjb72xi1p7"; }; } { @@ -86,8 +77,8 @@ fetch = { type = "git"; url = "https://github.com/gilbertchen/go-dropbox"; - rev = "90711b603312b1f973f3a5da3793ac4f1e5c2f2a"; - sha256 = "0y2ydl3mjbkfbqyygrwq7vqig9hjh7cxvzsn2gxc1851haqp4h19"; + rev = "2233fa1dd846b3a3e8060b6c1ea12883deb9d288"; + sha256 = "01fqxad5mm7rs0mp1ipp9aw80ski6sqyqljpf9dgify8dbiffl97"; }; } { @@ -145,12 +136,12 @@ }; } { - goPackagePath = "github.com/go-ini/ini"; + goPackagePath = "github.com/golang/groupcache"; fetch = { type = "git"; - url = "https://github.com/go-ini/ini"; - rev = "32e4c1e6bc4e7d0d8451aa6b75200d19e37a536a"; - sha256 = "0mhgxw5q6b0pryhikx3k4wby7g32rwjjljzihi47lwn34kw5y1qn"; + url = "https://github.com/golang/groupcache"; + rev = "8c9f03a8e57eb486e42badaed3fb287da51807ba"; + sha256 = "0vjjr79r32icjzlb05wn02k59av7jx0rn1jijml8r4whlg7dnkfh"; }; } { @@ -158,8 +149,8 @@ fetch = { type = "git"; url = "https://github.com/golang/protobuf"; - rev = "1e59b77b52bf8e4b449a57e6f79f21226d571845"; - sha256 = "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8"; + rev = "84668698ea25b64748563aa20726db66a6b8d299"; + sha256 = "1gkd1942vk9n8kfzdwy1iil6wgvlwjq7a3y5jc49ck4lz9rhmgkq"; }; } { @@ -167,8 +158,8 @@ fetch = { type = "git"; url = "https://github.com/googleapis/gax-go"; - rev = "317e0006254c44a0ac427cc52a0e083ff0b9622f"; - sha256 = "0h92x579vbrv2fka8q2ddy1kq6a63qbqa8zc09ygl6skzn9gw1dh"; + rev = "c8a15bac9b9fe955bd9f900272f9a306465d28cf"; + sha256 = "13x3x7agq0b46wpchbd2sqli5l33z6hvfn1qjbiqvsgpbv7wd140"; }; } { @@ -176,8 +167,26 @@ fetch = { type = "git"; url = "https://github.com/jmespath/go-jmespath"; - rev = "0b12d6b5"; - sha256 = "1vv6hph8j6xgv7gwl9vvhlsaaqsm22sxxqmgmldi4v11783pc1ld"; + rev = "c2b33e84"; + sha256 = "1r6w7ydx8ydryxk3sfhzsk8m6f1nsik9jg3i1zhi69v4kfl4d5cz"; + }; + } + { + goPackagePath = "github.com/klauspost/cpuid"; + fetch = { + type = "git"; + url = "https://github.com/klauspost/cpuid"; + rev = "750c0591dbbd50ef88371c665ad49e426a4b830b"; + sha256 = "1yiby4xa12j3kcw5q7dfsbcybhaxjkppvgz6ac2p2lcwha303b1g"; + }; + } + { + goPackagePath = "github.com/klauspost/reedsolomon"; + fetch = { + type = "git"; + url = "https://github.com/klauspost/reedsolomon"; + rev = "7daa20bf74337a939c54f892a2eca9d9b578eb7f"; + sha256 = "1xk4wqgrl63l95lqnszzbpa06apzxfmpwfnkrn1n8jb0ws7mi01m"; }; } { @@ -185,8 +194,8 @@ fetch = { type = "git"; url = "https://github.com/kr/fs"; - rev = "2788f0dbd16903de03cb8186e5c7d97b69ad387b"; - sha256 = "1c0fipl4rsh0v5liq1ska1dl83v3llab4k6lm8mvrx9c4dyp71ly"; + rev = "1455def202f6e05b95cc7bfc7e8ae67ae5141eba"; + sha256 = "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"; }; } { @@ -207,13 +216,31 @@ sha256 = "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd"; }; } + { + goPackagePath = "github.com/minio/highwayhash"; + fetch = { + type = "git"; + url = "https://github.com/minio/highwayhash"; + rev = "86a2a969d04373bf05ca722517d30fb1c9a3e4f9"; + sha256 = "0kj2hs82sphag0h25xvprvf2fz3zlinmlif89sk9jp8h518aiahf"; + }; + } + { + goPackagePath = "github.com/mmcloughlin/avo"; + fetch = { + type = "git"; + url = "https://github.com/mmcloughlin/avo"; + rev = "443f81d771042b019379ae4bfcd0a591cb47c88a"; + sha256 = "1zc95crbyi7ylqq3jwv4ya55lyzn9x730szdm307vdss4gqlx8yn"; + }; + } { goPackagePath = "github.com/ncw/swift"; fetch = { type = "git"; url = "https://github.com/ncw/swift"; - rev = "ae9f0ea1605b9aa6434ed5c731ca35d83ba67c55"; - sha256 = "0a0iwynhgxsl3czabl7ajnxpyw6x0dzbiqz6il8aw7kn10ld1rvl"; + rev = "3e1a09f21340e4828e7265aa89f4dc1495fa7ccc"; + sha256 = "19gb8xh400hzlbdp3nx1f85jxzs36zk0py39vmjcg3fnvdjzblm2"; }; } { @@ -221,8 +248,8 @@ fetch = { type = "git"; url = "https://github.com/pkg/errors"; - rev = "645ef00459ed84a119197bfb8d8205042c6df63d"; - sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5"; + rev = "614d223910a179a466c1767a985424175c39b465"; + sha256 = "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq"; }; } { @@ -230,8 +257,17 @@ fetch = { type = "git"; url = "https://github.com/pkg/sftp"; - rev = "3edd153f213d8d4191a0ee4577c61cca19436632"; - sha256 = "0iw6lijdljwh5xw5hsy0b578cr52h6vvm7hbnzlrvciwhh4sfhhp"; + rev = "5616182052227b951e76d9c9b79a616c608bd91b"; + sha256 = "1rjlhlkr505a0wvync1ycfn9njfc6bib6bw44qnnm50hlfs59hz2"; + }; + } + { + goPackagePath = "github.com/pkg/xattr"; + fetch = { + type = "git"; + url = "https://github.com/pkg/xattr"; + rev = "dd870b5cfebab49617ea0c1da6176474e8a52bf4"; + sha256 = "11ynkc61qrmf853g04sav8vawz8i6a8b73w71f3cq4djb4cnsw0d"; }; } { @@ -252,13 +288,31 @@ sha256 = "1l1isi3czis009d9k5awsj4xdxgbxn4n9yqjc1ac7f724x6jacfa"; }; } + { + goPackagePath = "go.opencensus.io"; + fetch = { + type = "git"; + url = "https://github.com/census-instrumentation/opencensus-go"; + rev = "d835ff86be02193d324330acdb7d65546b05f814"; + sha256 = "0xj16iq5jp26hi2py7lsd8cvqh651fgn39y05gzvjdi88d9xd3nw"; + }; + } { goPackagePath = "golang.org/x/crypto"; fetch = { type = "git"; url = "https://go.googlesource.com/crypto"; - rev = "9f005a07e0d31d45e6656d241bb5c0f2efd4bc94"; - sha256 = "1mhmr6ljzl3iafsz4qy8vval7rmr828wh59dlqqqjqx6sqmcs1dv"; + rev = "056763e48d71961566155f089ac0f02f1dda9b5a"; + sha256 = "0dcmns62hwid7hk4bmpl22z6ygjh168p23x3arzy320sd1lvap92"; + }; + } + { + goPackagePath = "golang.org/x/mod"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/mod"; + rev = "859b3ef565e237f9f1a0fb6b55385c497545680d"; + sha256 = "0ldgbx2zpprbsfn6p8pfgs4nn87gwbfcv2z0fa7n8alwsq2yw78q"; }; } { @@ -266,8 +320,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/net"; - rev = "9dfe39835686865bff950a07b394c12a98ddc811"; - sha256 = "0z8mnl4mi88syafrgqys2ak2gg3yrbna25hpz88y3anl8x4jhg1a"; + rev = "d3edc9973b7eb1fb302b0ff2c62357091cea9a30"; + sha256 = "12zbjwcsh9b0lwycqlkrnbyg5a6a9dzgj8hhgq399bdda5bd97y7"; }; } { @@ -275,8 +329,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/oauth2"; - rev = "f95fa95eaa936d9d87489b15d1d18b97c1ba9c28"; - sha256 = "0p9kis69wvhv8a2qbcjxvn9ggpdh81cbfjpq5pjga7n8k6d065fh"; + rev = "bf48bf16ab8d622ce64ec6ce98d2c98f916b6303"; + sha256 = "1sirdib60zwmh93kf9qrx51r8544k1p9rs5mk0797wibz3m4mrdg"; }; } { @@ -284,8 +338,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/sys"; - rev = "82aafbf43bf885069dc71b7e7c2f9d7a614d47da"; - sha256 = "1jvngpvy0q40f7krkgmwf5bbjzhv449297awcr0y78kzn0cyawi2"; + rev = "59c9f1ba88faf592b225274f69c5ef1e4ebacf82"; + sha256 = "014iiqjh9sikbcvacqiwhg6mvrsrr1va91wmc9yrnsm11c63yxfa"; }; } { @@ -293,17 +347,35 @@ fetch = { type = "git"; url = "https://go.googlesource.com/text"; - rev = "88f656faf3f37f690df1a32515b479415e1a6769"; - sha256 = "0zakmgg6dlwnkhignwjajn0dckzqq18zxvnmmg0fq6455x7fs673"; + rev = "342b2e1fbaa52c93f31447ad2c6abc048c63e475"; + sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh"; + }; + } + { + goPackagePath = "golang.org/x/tools"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "5d1fdd8fa3469142b9369713b23d8413d6d83189"; + sha256 = "0xp5ggnjnl1gqwi2ks042zimgkfv2qda9a57ar198xpyzdn1bv5s"; + }; + } + { + goPackagePath = "golang.org/x/xerrors"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/xerrors"; + rev = "5ec99f83aff198f5fbd629d6c8d8eb38a04218ca"; + sha256 = "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb"; }; } { goPackagePath = "google.golang.org/api"; fetch = { type = "git"; - url = "https://code.googlesource.com/google-api-go-client"; - rev = "17b5f22a248d6d3913171c1a557552ace0d9c806"; - sha256 = "0gs78qsxfg89kpiiray1x9jiv6bh328jmjkwd3ghnygf3l98kc8c"; + url = "https://github.com/googleapis/google-api-go-client"; + rev = "52f0532eadbcc6f6b82d6f5edf66e610d10bfde6"; + sha256 = "0l7q0mmq0v51wc72bk50nwaz9frl1pqp7gn5jhy1vzxdry930gkc"; }; } { @@ -311,17 +383,17 @@ fetch = { type = "git"; url = "https://github.com/golang/appengine"; - rev = "150dc57a1b433e64154302bdc40b6bb8aefa313a"; - sha256 = "0w3knznv39k8bm85ri62f83czcrxknql7dv6p9hk1a5jx3xljgxq"; + rev = "971852bfffca25b069c31162ae8f247a3dba083b"; + sha256 = "05hbq4cs7bqw0zl17bx8rzdkszid3nyl92100scg3jjrg70dhm7w"; }; } { goPackagePath = "google.golang.org/genproto"; fetch = { type = "git"; - url = "https://github.com/google/go-genproto"; - rev = "891aceb7c239e72692819142dfca057bdcbfcb96"; - sha256 = "1axim84fqzsp6iialk6zl4fsbfpx658vssc6ccakn4yy1xc9h854"; + url = "https://github.com/googleapis/go-genproto"; + rev = "baae70f3302d3efdff74db41e48a5d476d036906"; + sha256 = "1xacik4i5w2bpkrxzrfm00ggy5vygbzh8jmm2yq4mxiv0lnsh9nk"; }; } { @@ -329,8 +401,8 @@ fetch = { type = "git"; url = "https://github.com/grpc/grpc-go"; - rev = "5a9f7b402fe85096d2e1d0383435ee1876e863d0"; - sha256 = "1hlirgvmzb929jpb1dvh930646ih5ffg3b6pmlilqr7ffdkl5z3j"; + rev = "ac54eec90516cee50fc6b9b113b34628a85f976f"; + sha256 = "17zfx4xgqjamk7rc1sivm5gppkh3j4qp3i294w9rqbv0rqi0c9pq"; }; } ] \ No newline at end of file From 1fb875c036c4420deeb5f83678de249068a7804f Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 29 Dec 2020 11:51:55 -0500 Subject: [PATCH 16/37] wineStaging: fix mingwSupport --- pkgs/misc/emulators/wine/base.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/misc/emulators/wine/base.nix b/pkgs/misc/emulators/wine/base.nix index 0be36daac9f..d8655e558bd 100644 --- a/pkgs/misc/emulators/wine/base.nix +++ b/pkgs/misc/emulators/wine/base.nix @@ -1,6 +1,7 @@ { stdenv, lib, pkgArches, callPackage, name, version, src, mingwGccs, monos, geckos, platforms, - pkgconfig, fontforge, makeWrapper, flex, bison, + bison, flex, fontforge, makeWrapper, pkg-config, + autoconf, hexdump, perl, supportFlags, patches, buildScript ? null, configureFlags ? [] @@ -18,16 +19,24 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) { inherit name src configureFlags; # Fixes "Compiler cannot create executables" building wineWow with mingwSupport - # FIXME Breaks wineStaging builds - strictDeps = supportFlags.mingwSupport; + strictDeps = true; nativeBuildInputs = [ - pkgconfig fontforge makeWrapper flex bison + bison + flex + fontforge + makeWrapper + pkg-config + + # Required by staging + autoconf + hexdump + perl ] ++ lib.optionals supportFlags.mingwSupport mingwGccs; buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs: - [ pkgs.freetype ] + [ pkgs.freetype pkgs.perl pkgs.xorg.libX11 ] ++ lib.optional stdenv.isLinux pkgs.libcap ++ lib.optional pngSupport pkgs.libpng ++ lib.optional jpegSupport pkgs.libjpeg @@ -72,8 +81,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) { ]) ++ lib.optionals stdenv.isLinux (with pkgs.xorg; [ libXi libXcursor libXrandr libXrender libXxf86vm libXcomposite libXext - ]) - ++ [ pkgs.xorg.libX11 pkgs.perl ])); + ]))); patches = [ ] ++ patches'; From e5be5fbb71b3612cbd20be55a366237696022df5 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 30 Dec 2020 02:49:57 +0000 Subject: [PATCH 17/37] buku: 4.4 -> 4.5 --- pkgs/applications/misc/buku/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/buku/default.nix b/pkgs/applications/misc/buku/default.nix index 9b8f531e800..459b2159a93 100644 --- a/pkgs/applications/misc/buku/default.nix +++ b/pkgs/applications/misc/buku/default.nix @@ -1,14 +1,14 @@ { stdenv, python3, fetchFromGitHub }: with python3.pkgs; buildPythonApplication rec { - version = "4.4"; + version = "4.5"; pname = "buku"; src = fetchFromGitHub { owner = "jarun"; repo = "buku"; rev = "v${version}"; - sha256 = "10r5f1n0vcxxmqqqsgmlvibwg1xffijrr2id6r140rgiyhprz556"; + sha256 = "1lcq5fk8d5j2kfhn9m5l2hk46v7nj4vfa22m1psz35c9zpw4px8q"; }; checkInputs = [ From 71d479fbd3d3ee4f74c1804b76b6c74e8045bbe1 Mon Sep 17 00:00:00 2001 From: Colin L Rice Date: Wed, 30 Dec 2020 00:01:49 -0500 Subject: [PATCH 18/37] ncdns: Update to 2020-11-22 to remove go1.14 dep. I've poked them to tag a new version at https://github.com/namecoin/ncdns/issues/126, but master builds cleanly with go1.15, so I just updated to unstable --- pkgs/servers/dns/ncdns/default.nix | 10 ++-- pkgs/servers/dns/ncdns/deps.nix | 79 +++++++++++++++++------------- pkgs/top-level/all-packages.nix | 4 +- 3 files changed, 48 insertions(+), 45 deletions(-) diff --git a/pkgs/servers/dns/ncdns/default.nix b/pkgs/servers/dns/ncdns/default.nix index f1d124176bb..b046aff12bd 100644 --- a/pkgs/servers/dns/ncdns/default.nix +++ b/pkgs/servers/dns/ncdns/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { pname = "ncdns"; - version = "0.0.10.3"; + version = "2020-11-22"; goPackagePath = "github.com/namecoin/ncdns"; goDeps = ./deps.nix; @@ -10,18 +10,14 @@ buildGoPackage rec { src = fetchFromGitHub { owner = "namecoin"; repo = "ncdns"; - rev = "v${version}"; - sha256 = "12q5al48mkjhgyk7z5wyklzzrdbcqhwxl79axa4gh9ld75prghbq"; + rev = "2fa54cd3b5480dba82170ab8ecb511fbd4977c41"; + sha256 = "0mrxbg5lmy3s281ff6nxpp03z4mqwq7h5hkqm9qy8nb280x1sx7h"; }; patches = [ ./fix-tpl-path.patch ]; buildInputs = [ libcap ]; - preBuild = '' - go generate github.com/namecoin/x509-signature-splice/... - ''; - postInstall = '' mkdir -p "$out/share" cp -r "$src/_doc" "$out/share/doc" diff --git a/pkgs/servers/dns/ncdns/deps.nix b/pkgs/servers/dns/ncdns/deps.nix index 7ac3f2897e0..f48faa9648b 100644 --- a/pkgs/servers/dns/ncdns/deps.nix +++ b/pkgs/servers/dns/ncdns/deps.nix @@ -5,8 +5,8 @@ fetch = { type = "git"; url = "https://github.com/BurntSushi/toml"; - rev = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005"; - sha256 = "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"; + rev = "ea60c4def909bde529d41a7e0674e31eba751da3"; + sha256 = "08xhd9jlgkql8kqpi98aaq9k8hgb6x7197r6crp84r1ic8k7im4y"; }; } { @@ -23,8 +23,8 @@ fetch = { type = "git"; url = "https://github.com/alecthomas/units"; - rev = "f65c72e2690dc4b403c8bd637baf4611cd4c069b"; - sha256 = "04jyqm7m3m01ppfy1f9xk4qvrwvs78q9zml6llyf2b3v5k6b2bbc"; + rev = "1786d5ef83d4868925e518b2995c30430aec0f06"; + sha256 = "1grs2y4gnyq8wv9w61c231a01c7qd916b7rxqy798b8sfirr3ci8"; }; } { @@ -32,8 +32,8 @@ fetch = { type = "git"; url = "https://github.com/btcsuite/btcd"; - rev = "9f0179fd2c46caba343b6515602cf37172f14d5f"; - sha256 = "0cvpjsxlyzm04pwzi7nj43k9h5wfxj07jdc49qxsav5323v1nvka"; + rev = "6bd4c64a54faeb343d5e3c1ee5802450a291787f"; + sha256 = "15plh7rrmx1ydy3ldnylr727s9szrrkqzbf2ma2ka2qag1vy6nvb"; }; } { @@ -50,8 +50,8 @@ fetch = { type = "git"; url = "https://github.com/btcsuite/btcutil"; - rev = "b2bf7f89d674a3702182b7e15f52807896051af3"; - sha256 = "0wwykb4cbq8xj2mls2mxma5vaahdgdy3vqw1r2fi4wyj0yr4kyw9"; + rev = "a53e38424cce1c9de2062b69364efd35fd428d15"; + sha256 = "1izjvgi0d5wnknfwdnqa196hn4vj1n5ga7swbhcfsgghk2zngwr4"; }; } { @@ -77,8 +77,8 @@ fetch = { type = "git"; url = "https://github.com/coreos/go-systemd"; - rev = "b51e752dd1c9c618846f8bc5b95ab524bd7b11c2"; - sha256 = "127dj1iwp69yj74nwh9ckgc0mkk1mv4yzbxmbdxix1r7j6q35z3j"; + rev = "87511f396ae9991f8589f6e6dcf58e28a91ba52b"; + sha256 = "139ylav4vl4h7ndy1xkj0dn45rbknv2rfjlifrj622n96c4rrazx"; }; } { @@ -131,8 +131,8 @@ fetch = { type = "git"; url = "https://github.com/kr/pretty"; - rev = "4e0886370c3a67530192c6a238cff68f56c141b0"; - sha256 = "1ywbfzz1h3a3qd8rpkiqwi1dm4w8ls9ijb4x1b7567grns9f0vnp"; + rev = "a883a8422cd235c67c6c4fdcb7bbb022143e10b1"; + sha256 = "0vp5ijbapw8j52c3l992m1wm8nhl23n68xk3lqxhad3srxmdb9z4"; }; } { @@ -140,8 +140,8 @@ fetch = { type = "git"; url = "https://github.com/kr/text"; - rev = "702c74938df48b97370179f33ce2107bd7ff3b3e"; - sha256 = "0hf58ypz6rxsw6nx3i856whir9lvy4sdx946wbw1nfaf2rdmr9vx"; + rev = "cafcf9720371e5625e7300397de921f58e069d17"; + sha256 = "0q164xvv7nwgjq2l2lln4y7yp036jpwx8v7yfsz432czl10d4g0h"; }; } { @@ -158,8 +158,8 @@ fetch = { type = "git"; url = "https://github.com/miekg/dns"; - rev = "203ad2480beb9330454efc215d21f16c607e8174"; - sha256 = "12i2l79whv7a8c27f1dvq4wqikx4d0l30r1ja68zfgrgik6vryxq"; + rev = "23c4faca9d32b0abbb6e179aa1aadc45ac53a916"; + sha256 = "1iir2yrx71wg0ab9j4qm70aycym2pxrb043dmbknyzbw9s43cabz"; }; } { @@ -189,6 +189,15 @@ sha256 = "0pj951wm6fdkk2yv4bxaxka52i7rb6w3fs9ah3fy7p8wchr4smjx"; }; } + { + goPackagePath = "github.com/namecoin/splicesign"; + fetch = { + type = "git"; + url = "https://github.com/namecoin/splicesign"; + rev = "38bb6fb3ec66c72ecb3a14e1e714768cc6e56ed7"; + sha256 = "0irlbcrarbrvzdnph9kxrf8bkij1lzqpp5mxh8i60n5ii7bj0wsd"; + }; + } { goPackagePath = "github.com/namecoin/tlsrestrictnss"; fetch = { @@ -198,22 +207,22 @@ sha256 = "18qphkqnjw3bwflkyyrddyzgwscs37j7y6ynm9g78bqb5skviqqy"; }; } - { - goPackagePath = "github.com/namecoin/x509-signature-splice"; - fetch = { - type = "git"; - url = "https://github.com/namecoin/x509-signature-splice"; - rev = "d8b4bf2df701c55239a9fe82bb1e7bea10e30599"; - sha256 = "0jlj4gb60s7b69d8yx6ljhxgvqgjz01n0h59fswblw09wfba8c4j"; - }; - } { goPackagePath = "github.com/ogier/pflag"; fetch = { type = "git"; url = "https://github.com/ogier/pflag"; - rev = "45c278ab3607870051a2ea9040bb85fcb8557481"; - sha256 = "0620v75wppfd84d95n312wpngcb73cph4q3ivs1h0waljfnsrd5l"; + rev = "73e519546fc0bce0c395610afcf6aa4e5aec88eb"; + sha256 = "114zpgl6l47gsz0sifpq62hi2i6k0ra9hi8wx7d39giablf9i4ii"; + }; + } + { + goPackagePath = "github.com/rogpeppe/go-internal"; + fetch = { + type = "git"; + url = "https://github.com/rogpeppe/go-internal"; + rev = "eea92b9e2c4424af886c8c620efa50fff5a56387"; + sha256 = "0lf4x32af40ixnysfzfm9r08gpsd3k3x7p3hr2k8q72llsa1zivz"; }; } { @@ -221,8 +230,8 @@ fetch = { type = "git"; url = "https://github.com/shiena/ansicolor"; - rev = "a422bbe96644373c5753384a59d678f7d261ff10"; - sha256 = "1dcn8a9z6a5dxa2m3fkppnajcls8lanbl38qggkf646yi5qsk1hc"; + rev = "c7312218db184c554578219828d6c9498d02dcb1"; + sha256 = "14mhp5ir1vlshja9bam6df5wpbqdwg46qn1ysixjiap535ajhkza"; }; } { @@ -230,8 +239,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/crypto"; - rev = "279210d13fedf5be6d476bad5df6a015042bb905"; - sha256 = "0syi72jba84nn1z89bqpcv94wjvzj71dwg1pj30xrcixcz1zsg26"; + rev = "eec23a3978adcfd26c29f4153eaa3e3d9b2cc53a"; + sha256 = "18cf6vhmx7v83ahyil7j8hkwhwf1012bgixglz7a6nc35qwwqb3r"; }; } { @@ -239,8 +248,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/net"; - rev = "627f9648deb96c27737b83199d44bb5c1010cbcf"; - sha256 = "0ziz7i9mhz6dy2f58dsa83flkk165w1cnazm7yksql5i9m7x099z"; + rev = "6772e930b67bb09bf22262c7378e7d2f67cf59d1"; + sha256 = "0zlr39dxbg0fxfdrc20c4x0pw43n9kz749ssml97cdzqy116p5qa"; }; } { @@ -248,8 +257,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/sys"; - rev = "6fdc65e7d9800cc59998e8ac0d9406a20ff5f399"; - sha256 = "0al5gzij4qkrp11i1h8j7288pg6y716zyh2v0886pv2knha7gjvj"; + rev = "0d417f6369309be088e227ead8736fb722d759d3"; + sha256 = "1cn19s7kg91alianr1c1bp6k6p1wccigg19h6fchd84jb2zakkvs"; }; } { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61c08ca184b..ffdff3d109d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17330,9 +17330,7 @@ in unit = callPackage ../servers/http/unit { }; - ncdns = callPackage ../servers/dns/ncdns { - buildGoPackage = buildGo114Package; - }; + ncdns = callPackage ../servers/dns/ncdns { }; nginx = nginxStable; From f7fc3bfd559190866d1adb32ed32b7836c2282d2 Mon Sep 17 00:00:00 2001 From: Colin L Rice Date: Wed, 30 Dec 2020 00:16:22 -0500 Subject: [PATCH 19/37] ipfs-cluster: Remove go1.14 pinning. It builds without it, so I think it's just some legacy cruft --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61c08ca184b..d417ed8ad56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4910,9 +4910,7 @@ in ipfs = callPackage ../applications/networking/ipfs { }; ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { }; - ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { - buildGoModule = buildGo114Module; - }; + ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { }; ipget = callPackage ../applications/networking/ipget { }; From e15c0e65141d48609a623aa3464ac6f8e3ae6f97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Dec 2020 12:50:32 +0100 Subject: [PATCH 20/37] python3Packages.PyChromecast: update attributes --- pkgs/development/python-modules/pychromecast/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pychromecast/default.nix b/pkgs/development/python-modules/pychromecast/default.nix index ce72850fffd..9018a54740e 100644 --- a/pkgs/development/python-modules/pychromecast/default.nix +++ b/pkgs/development/python-modules/pychromecast/default.nix @@ -14,8 +14,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests zeroconf protobuf casttube ]; meta = with lib; { - description = "Library for Python 3.4+ to communicate with the Google Chromecast"; - homepage = "https://github.com/balloob/pychromecast"; + description = "Library for Python to communicate with the Google Chromecast"; + homepage = "https://github.com/home-assistant-libs/pychromecast"; license = licenses.mit; maintainers = with maintainers; [ abbradar ]; platforms = platforms.unix; From 5f498ef5852b3ede8da0472a4605e5983060f40a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Dec 2020 12:58:31 +0100 Subject: [PATCH 21/37] python3Packages.PyChromecast: 7.5.1 -> 7.7.1 --- pkgs/development/python-modules/pychromecast/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pychromecast/default.nix b/pkgs/development/python-modules/pychromecast/default.nix index 9018a54740e..541dd962c08 100644 --- a/pkgs/development/python-modules/pychromecast/default.nix +++ b/pkgs/development/python-modules/pychromecast/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "PyChromecast"; - version = "7.5.1"; + version = "7.7.1"; src = fetchPypi { inherit pname version; - sha256 = "cf2e9fa795ea1e9d0d180adfbdccefd6b4f532eae56f41f15d1a75b323096f51"; + sha256 = "09mdz1y1bfwkszxsawffwy1mr7lc1j2rma571qkb60sk76107zfn"; }; disabled = !isPy3k; From 65d90a08f27d75e12e7d064a5555337079f8baff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Dec 2020 13:09:02 +0100 Subject: [PATCH 22/37] python3Packages.PyChromecast: add pythonImportsCheck --- pkgs/development/python-modules/pychromecast/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pychromecast/default.nix b/pkgs/development/python-modules/pychromecast/default.nix index 541dd962c08..6e45eb2a626 100644 --- a/pkgs/development/python-modules/pychromecast/default.nix +++ b/pkgs/development/python-modules/pychromecast/default.nix @@ -13,6 +13,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests zeroconf protobuf casttube ]; + pythonImportsCheck = [ "pychromecast" ]; + meta = with lib; { description = "Library for Python to communicate with the Google Chromecast"; homepage = "https://github.com/home-assistant-libs/pychromecast"; From 77fc15da7c757e54ba0098b5de389785451dbe57 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Dec 2020 13:16:57 +0100 Subject: [PATCH 23/37] python3Packages.paste: 3.4.1 -> 3.5.0 --- pkgs/development/python-modules/paste/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/paste/default.nix b/pkgs/development/python-modules/paste/default.nix index 5b12f04b2e5..6bed8144a21 100644 --- a/pkgs/development/python-modules/paste/default.nix +++ b/pkgs/development/python-modules/paste/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "paste"; - version = "3.4.1"; + version = "3.5.0"; src = fetchPypi { pname = "Paste"; inherit version; - sha256 = "1csqn7g9b05hp3fgd82355k4pb5rv12k9x6p2mdw2v01m385171p"; + sha256 = "17f3zppjjprs2jnklvzkz23mh9jdn6b1f445mvrjdm4ivi15q28v"; }; propagatedBuildInputs = [ six ]; From 791ef2e848cdb2e99f2eae43923856b19bb14e8e Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 27 Dec 2020 18:29:25 -0300 Subject: [PATCH 24/37] nixos/hardware: add opentabletdriver module --- nixos/modules/hardware/opentabletdriver.nix | 58 +++++++++++++++++++++ nixos/modules/module-list.nix | 1 + 2 files changed, 59 insertions(+) create mode 100644 nixos/modules/hardware/opentabletdriver.nix diff --git a/nixos/modules/hardware/opentabletdriver.nix b/nixos/modules/hardware/opentabletdriver.nix new file mode 100644 index 00000000000..b759bcf034e --- /dev/null +++ b/nixos/modules/hardware/opentabletdriver.nix @@ -0,0 +1,58 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.hardware.opentabletdriver; +in +{ + options = { + hardware.opentabletdriver = { + enable = mkOption { + default = false; + type = types.bool; + description = '' + Enable OpenTabletDriver udev rules, user service and blacklist kernel + modules known to conflict with OpenTabletDriver. + ''; + }; + + blacklistedKernelModules = mkOption { + type = types.listOf types.str; + default = [ "hid-uclogic" "wacom" ]; + description = '' + Blacklist of kernel modules known to conflict with OpenTabletDriver. + ''; + }; + + daemon = { + enable = mkOption { + default = true; + type = types.bool; + description = '' + Whether to start OpenTabletDriver daemon as a systemd user service. + ''; + }; + }; + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ opentabletdriver ]; + + services.udev.packages = with pkgs; [ opentabletdriver ]; + + boot.blacklistedKernelModules = cfg.blacklistedKernelModules; + + systemd.user.services.opentabletdriver = with pkgs; mkIf cfg.daemon.enable { + description = "Open source, cross-platform, user-mode tablet driver"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + + serviceConfig = { + Type = "simple"; + ExecStart = "${opentabletdriver}/bin/otd-daemon -c ${opentabletdriver}/lib/OpenTabletDriver/Configurations"; + Restart = "on-failure"; + }; + }; + }; +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index ed6a493e276..a86d397e95e 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -66,6 +66,7 @@ ./hardware/tuxedo-keyboard.nix ./hardware/usb-wwan.nix ./hardware/onlykey.nix + ./hardware/opentabletdriver.nix ./hardware/wooting.nix ./hardware/uinput.nix ./hardware/video/amdgpu.nix From 6c509c3eb173edabb69ff963dd144b1bf3c66c16 Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Wed, 30 Dec 2020 06:39:34 +0000 Subject: [PATCH 25/37] maintainers: add ninjin --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4b2dc491476..5ce46ff6436 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6441,6 +6441,16 @@ githubId = 1219785; name = "Félix Baylac-Jacqué"; }; + ninjin = { + email = "pontus@stenetorp.se"; + github = "ninjin"; + githubId = 354934; + name = "Pontus Stenetorp"; + keys = [{ + longkeyid = "rsa4096/0xD430287500E6483C"; + fingerprint = "0966 2F9F 3FDA C22B C22E 4CE1 D430 2875 00E6 483C"; + }]; + }; nioncode = { email = "nioncode+github@gmail.com"; github = "nioncode"; From 326f94c05989e23c9cb081c217165393eacb9510 Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Wed, 30 Dec 2020 06:52:33 +0000 Subject: [PATCH 26/37] fdm: add ninjin as a maintainer --- pkgs/tools/networking/fdm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix index fb125b486d7..f83b2fb2fe2 100644 --- a/pkgs/tools/networking/fdm/default.nix +++ b/pkgs/tools/networking/fdm/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation { meta = with stdenv.lib; { description = "Mail fetching and delivery tool - should do the job of getmail and procmail"; - maintainers = with maintainers; [ raskin ]; + maintainers = with maintainers; [ ninjin raskin ]; platforms = with platforms; linux; homepage = "https://github.com/nicm/fdm"; downloadPage = "https://github.com/nicm/fdm/releases"; From 3fa4f4718f6310a32a96bf2f0db141ad850d3efc Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Wed, 30 Dec 2020 06:53:04 +0000 Subject: [PATCH 27/37] fdm: 1.9.0.20170124 -> 2.0 --- pkgs/tools/networking/fdm/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix index f83b2fb2fe2..1c3d69f9cb4 100644 --- a/pkgs/tools/networking/fdm/default.nix +++ b/pkgs/tools/networking/fdm/default.nix @@ -3,7 +3,7 @@ let baseName = "fdm"; - version = "1.9.0.20170124"; + version = "2.0"; in @@ -13,8 +13,8 @@ stdenv.mkDerivation { src = fetchFromGitHub { owner = "nicm"; repo = baseName; - rev = "cae4ea37b6b296d1b2e48f62934ea3a7f6085e33"; - sha256 = "048191wdv1yprwinipmx2152gvd2iq1ssv7xfb1bzh6zirh1ya3n"; + rev = "370b04f165b0bb2989be378bb7e66b14f042d3f9"; + sha256 = "0j2n271ni5wslgjq1f4zgz1nsvqjf895dxy3ij5c904bbp8ckcwq"; }; nativeBuildInputs = [ autoreconfHook ]; From a4e95b70f21c685597f7b753394fed78bf35bf40 Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Wed, 30 Dec 2020 13:16:42 +0000 Subject: [PATCH 28/37] fdm: modernised syntax --- pkgs/tools/networking/fdm/default.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix index 1c3d69f9cb4..cb5a781f5ef 100644 --- a/pkgs/tools/networking/fdm/default.nix +++ b/pkgs/tools/networking/fdm/default.nix @@ -1,19 +1,13 @@ { stdenv, fetchFromGitHub, autoreconfHook, openssl, tdb, zlib, flex, bison }: -let - - baseName = "fdm"; +stdenv.mkDerivation rec { + pname = "fdm"; version = "2.0"; -in - -stdenv.mkDerivation { - name = "${baseName}-${version}"; - src = fetchFromGitHub { owner = "nicm"; - repo = baseName; - rev = "370b04f165b0bb2989be378bb7e66b14f042d3f9"; + repo = pname; + rev = version; sha256 = "0j2n271ni5wslgjq1f4zgz1nsvqjf895dxy3ij5c904bbp8ckcwq"; }; From ac02f26980ffc6a84844943cb2c303662225543a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 22 Dec 2020 17:52:15 +0100 Subject: [PATCH 29/37] =?UTF-8?q?ocamlPackages.cppo:=201.6.{5,6}=20?= =?UTF-8?q?=E2=86=92=201.6.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ocamlPackages.cppo_ocamlbuild: init at 1.6.7 --- pkgs/development/tools/ocaml/cppo/default.nix | 99 ++++++++++--------- .../tools/ocaml/cppo/ocamlbuild.nix | 17 ++++ pkgs/top-level/ocaml-packages.nix | 2 + 3 files changed, 73 insertions(+), 45 deletions(-) create mode 100644 pkgs/development/tools/ocaml/cppo/ocamlbuild.nix diff --git a/pkgs/development/tools/ocaml/cppo/default.nix b/pkgs/development/tools/ocaml/cppo/default.nix index 63c169f045f..a0215fa8147 100644 --- a/pkgs/development/tools/ocaml/cppo/default.nix +++ b/pkgs/development/tools/ocaml/cppo/default.nix @@ -1,56 +1,65 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }: +{ stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild +, buildDunePackage +}: + let pname = "cppo"; - webpage = "https://github.com/ocaml-community/${pname}"; -in -assert stdenv.lib.versionAtLeast ocaml.version "3.12"; - -let param = - if stdenv.lib.versionAtLeast ocaml.version "4.02" then - (if stdenv.lib.versionAtLeast ocaml.version "4.03" then { - version = "1.6.6"; - sha256 = "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"; - } else { - version = "1.6.5"; - sha256 = "03c0amszy28shinvz61hm340jz446zz5763a1pdqlza36kwcj0p0"; - }) // { - buildInputs = [ dune ]; - extra = { - inherit (dune) installPhase; - }; - } else { - version = "1.5.0"; - sha256 = "1xqldjz9risndnabvadw41fdbi5sa2hl4fnqls7j9xfbby1izbg8"; - extra = { - createFindlibDestdir = true; - makeFlags = [ "PREFIX=$(out)" ]; - preBuild = '' - mkdir $out/bin - ''; - }; - } -; in - -stdenv.mkDerivation ({ - - name = "${pname}-${param.version}"; - - src = fetchFromGitHub { - owner = "mjambon"; - repo = pname; - rev = "v${param.version}"; - inherit (param) sha256; - }; - - buildInputs = [ ocaml findlib ocamlbuild ] ++ (param.buildInputs or []); meta = with stdenv.lib; { description = "The C preprocessor for OCaml"; longDescription = '' Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants. ''; - homepage = webpage; + homepage = "https://github.com/ocaml-community/${pname}"; maintainers = [ maintainers.vbgl ]; license = licenses.bsd3; }; -} // param.extra) + +in + +if stdenv.lib.versionAtLeast ocaml.version "4.02" then + +buildDunePackage rec { + inherit pname; + version = "1.6.7"; + + useDune2 = true; + + src = fetchurl { + url = "https://github.com/ocaml-community/cppo/releases/download/v${version}/cppo-v${version}.tbz"; + sha256 = "17ajdzrnmnyfig3s6hinb56mcmhywbssxhsq32dz0v90dhz3wmfv"; + }; + + doCheck = true; + + inherit meta; +} + +else + +let version = "1.5.0"; in + +stdenv.mkDerivation { + + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "mjambon"; + repo = pname; + rev = "v${version}"; + sha256 = "1xqldjz9risndnabvadw41fdbi5sa2hl4fnqls7j9xfbby1izbg8"; + }; + + buildInputs = [ ocaml findlib ocamlbuild ]; + + inherit meta; + + createFindlibDestdir = true; + + makeFlags = [ "PREFIX=$(out)" ]; + + preBuild = '' + mkdir $out/bin + ''; + +} diff --git a/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix b/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix new file mode 100644 index 00000000000..633dc6bc7bf --- /dev/null +++ b/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix @@ -0,0 +1,17 @@ +{ lib, buildDunePackage, cppo, ocamlbuild }: + +if !lib.versionAtLeast (lib.getVersion cppo) "1.6" +then cppo +else + +buildDunePackage rec { + pname = "cppo_ocamlbuild"; + + inherit (cppo) version useDune2 src; + + propagatedBuildInputs = [ ocamlbuild ]; + + meta = cppo.meta // { + description = "Plugin to use cppo with ocamlbuild"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 5cc4cfb9a16..f16b55cf093 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -161,6 +161,8 @@ let cppo = callPackage ../development/tools/ocaml/cppo { }; + cppo_ocamlbuild = callPackage ../development/tools/ocaml/cppo/ocamlbuild.nix { }; + cpu = callPackage ../development/ocaml-modules/cpu { }; cpuid = callPackage ../development/ocaml-modules/cpuid { }; From efef8e996351d2924650d9cb61ca734aa9cecb46 Mon Sep 17 00:00:00 2001 From: Marc Seeger Date: Wed, 30 Dec 2020 07:08:49 -0800 Subject: [PATCH 30/37] librepo: enable zchunk support on darwin --- pkgs/tools/package-management/librepo/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/package-management/librepo/default.nix b/pkgs/tools/package-management/librepo/default.nix index f636560844b..203d5e20f88 100644 --- a/pkgs/tools/package-management/librepo/default.nix +++ b/pkgs/tools/package-management/librepo/default.nix @@ -38,9 +38,8 @@ stdenv.mkDerivation rec { curl check gpgme - ] - # zchunk currently has issues compiling in darwin, fine in linux - ++ stdenv.lib.optional stdenv.isLinux zchunk; + zchunk + ]; # librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here propagatedBuildInputs = [ @@ -49,9 +48,7 @@ stdenv.mkDerivation rec { libxml2 ]; - cmakeFlags = [ - "-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" - ] ++ stdenv.lib.optional stdenv.isDarwin "-DWITH_ZCHUNK=OFF"; + cmakeFlags = [ "-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" ]; postFixup = '' moveToOutput "lib/${python.libPrefix}" "$py" From f38596852fef3dded20876c3a79d04441b8a5415 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Tue, 29 Dec 2020 12:58:38 -0500 Subject: [PATCH 31/37] python3Packages.numexpr: 2.7.1 -> 2.7.2 --- pkgs/development/python-modules/numexpr/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/numexpr/default.nix b/pkgs/development/python-modules/numexpr/default.nix index 046f0a5bd5d..e5a36fe454f 100644 --- a/pkgs/development/python-modules/numexpr/default.nix +++ b/pkgs/development/python-modules/numexpr/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "numexpr"; - version = "2.7.1"; + version = "2.7.2"; src = fetchPypi { inherit pname version; - sha256 = "1c82z0zx0542j9df6ckjz6pn1g13b21hbza4hghcw6vyhbckklmh"; + sha256 = "1ai3i5n07csnzfsxf2dxp8cpdk6ajl5iv8rv0fj6n9ag7qphixac"; }; # Remove existing site.cfg, use the one we built for numpy. From 7b968c79a15796c524b75a0e43d643e36aa10e97 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Wed, 30 Dec 2020 00:50:42 +0100 Subject: [PATCH 32/37] ocamlPackages.syslog-message: init at 1.1.0 --- .../ocaml-modules/syslog-message/default.nix | 35 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/ocaml-modules/syslog-message/default.nix diff --git a/pkgs/development/ocaml-modules/syslog-message/default.nix b/pkgs/development/ocaml-modules/syslog-message/default.nix new file mode 100644 index 00000000000..ba967d87446 --- /dev/null +++ b/pkgs/development/ocaml-modules/syslog-message/default.nix @@ -0,0 +1,35 @@ +{ lib, buildDunePackage, fetchurl +, astring, ptime, rresult, qcheck +}: + +buildDunePackage rec { + pname = "syslog-message"; + version = "1.1.0"; + + minimumOCamlVersion = "4.03"; + + useDune2 = true; + + src = fetchurl { + url = "https://github.com/verbosemode/${pname}/releases/download/${version}/${pname}-${version}.tbz"; + sha256 = "0vy4dkl2q2fa6rzyfsvjyc9r1b9ymfqd6j35z2kp5vdc4r87053g"; + }; + + propagatedBuildInputs = [ + astring + ptime + rresult + ]; + + doCheck = true; + checkInputs = [ + qcheck + ]; + + meta = with lib; { + description = "Syslog message parser"; + homepage = "https://github.com/verbosemode/syslog-message"; + license = licenses.bsd2; + maintainers = [ maintainers.sternenseemann ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f16b55cf093..97a7ad5030c 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -738,6 +738,8 @@ let syslog = callPackage ../development/ocaml-modules/syslog { }; + syslog-message = callPackage ../development/ocaml-modules/syslog-message { }; + ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { }; ocaml-version = callPackage ../development/ocaml-modules/ocaml-version { }; From caf07b0ebf5ddad6b9be0a1295e9c032379558d9 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Wed, 30 Dec 2020 16:08:40 +0100 Subject: [PATCH 33/37] ocamlPackages.mirage: reintroduce dev output The changed dune install directive to install libraries to the dev output was removed by mistake. --- pkgs/development/ocaml-modules/mirage/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/mirage/default.nix b/pkgs/development/ocaml-modules/mirage/default.nix index 5160734e4f8..6b8bcb1fbe9 100644 --- a/pkgs/development/ocaml-modules/mirage/default.nix +++ b/pkgs/development/ocaml-modules/mirage/default.nix @@ -1,4 +1,4 @@ -{ lib, buildDunePackage, alcotest +{ lib, buildDunePackage, ocaml, alcotest , functoria, mirage-runtime, bos , ipaddr, astring, logs, stdlib-shims }: @@ -28,6 +28,12 @@ buildDunePackage rec { alcotest ]; + installPhase = '' + runHook preInstall + dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname} + runHook postInstall + ''; + meta = mirage-runtime.meta // { description = "The MirageOS library operating system"; }; From 3d7d7b8af3e3ba8c0c009e813b6b06f376b14349 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 26 Dec 2020 18:32:36 +0100 Subject: [PATCH 34/37] ocamlPackages.diet: init at 0.4 --- .../ocaml-modules/diet/default.nix | 26 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/ocaml-modules/diet/default.nix diff --git a/pkgs/development/ocaml-modules/diet/default.nix b/pkgs/development/ocaml-modules/diet/default.nix new file mode 100644 index 00000000000..0d4229c03ea --- /dev/null +++ b/pkgs/development/ocaml-modules/diet/default.nix @@ -0,0 +1,26 @@ +{ lib, buildDunePackage, fetchurl, stdlib-shims, ounit }: + +buildDunePackage rec { + pname = "diet"; + version = "0.4"; + + src = fetchurl { + url = + "https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz"; + sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741"; + }; + + minimumOCamlVersion = "4.03"; + + propagatedBuildInputs = [ stdlib-shims ]; + + doCheck = true; + checkInputs = [ ounit ]; + + meta = with lib; { + homepage = "https://github.com/mirage/ocaml-diet"; + description = "Simple implementation of Discrete Interval Encoding Trees"; + license = licenses.isc; + maintainers = with maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 97a7ad5030c..83ed869bdcf 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -203,6 +203,8 @@ let decompress = callPackage ../development/ocaml-modules/decompress { }; + diet = callPackage ../development/ocaml-modules/diet { }; + digestif = callPackage ../development/ocaml-modules/digestif { }; dispatch = callPackage ../development/ocaml-modules/dispatch { }; From 30a281783155695995ebc2a91582976af2b22752 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 26 Dec 2020 19:31:57 +0100 Subject: [PATCH 35/37] ocamlPackages.mirage-block-combinators: init at 2.0.1 --- .../ocaml-modules/mirage-block/combinators.nix | 17 +++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-block/combinators.nix diff --git a/pkgs/development/ocaml-modules/mirage-block/combinators.nix b/pkgs/development/ocaml-modules/mirage-block/combinators.nix new file mode 100644 index 00000000000..9d0cdd435cb --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-block/combinators.nix @@ -0,0 +1,17 @@ +{ buildDunePackage, mirage-block, io-page, logs }: + +buildDunePackage rec { + pname = "mirage-block-combinators"; + inherit (mirage-block) version src useDune2; + + propagatedBuildInputs = [ mirage-block io-page logs ]; + + meta = mirage-block.meta // { + description = "Block signatures and implementations for MirageOS using Lwt"; + longDescription = '' + This repo contains generic operations over Mirage `BLOCK` devices. + This package is specialised to the Lwt concurrency library for IO. + ''; + }; + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 83ed869bdcf..c8b868f74b6 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -575,6 +575,8 @@ let mirage-block = callPackage ../development/ocaml-modules/mirage-block { }; + mirage-block-combinators = callPackage ../development/ocaml-modules/mirage-block/combinators.nix { }; + mirage-bootvar-unix = callPackage ../development/ocaml-modules/mirage-bootvar-unix { }; mirage-channel = callPackage ../development/ocaml-modules/mirage-channel { }; From 13eede3e6666b84a5a5b53899ebb68357b440a35 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 26 Dec 2020 19:35:40 +0100 Subject: [PATCH 36/37] ocamlPackages.mirage-block-ramdisk: init at 0.5 --- .../mirage-block-ramdisk/default.nix | 29 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix b/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix new file mode 100644 index 00000000000..1dcc769abb6 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchurl, buildDunePackage, io-page, io-page-unix, mirage-block, alcotest +, mirage-block-combinators }: + +buildDunePackage rec { + pname = "mirage-block-ramdisk"; + version = "0.5"; + + useDune2 = true; + + src = fetchurl { + url = + "https://github.com/mirage/mirage-block-ramdisk/releases/download/${version}/mirage-block-ramdisk-${version}.tbz"; + sha256 = "cc0e814fd54efe7a5b7a8c5eb1c04e2dece751b7d8dee2d95908a0768896e8af"; + }; + + minimumOCamlVersion = "4.06"; + + propagatedBuildInputs = [ io-page mirage-block ]; + + doCheck = true; + checkInputs = [ alcotest io-page-unix mirage-block-combinators ]; + + meta = with lib; { + description = "In-memory BLOCK device for MirageOS"; + homepage = "https://github.com/mirage/mirage-block-ramdisk"; + license = licenses.isc; + maintainers = with maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c8b868f74b6..06ca7b01fae 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -577,6 +577,8 @@ let mirage-block-combinators = callPackage ../development/ocaml-modules/mirage-block/combinators.nix { }; + mirage-block-ramdisk = callPackage ../development/ocaml-modules/mirage-block-ramdisk { }; + mirage-bootvar-unix = callPackage ../development/ocaml-modules/mirage-bootvar-unix { }; mirage-channel = callPackage ../development/ocaml-modules/mirage-channel { }; From bea44d5ebe332260aa34a1bd48250b6364527356 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 30 Dec 2020 18:25:51 +0100 Subject: [PATCH 37/37] html-proofer: 3.18.2 -> 3.18.3 --- pkgs/tools/misc/html-proofer/Gemfile.lock | 4 ++-- pkgs/tools/misc/html-proofer/gemset.nix | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/html-proofer/Gemfile.lock b/pkgs/tools/misc/html-proofer/Gemfile.lock index 13c630718b1..ce75c4e7fd8 100644 --- a/pkgs/tools/misc/html-proofer/Gemfile.lock +++ b/pkgs/tools/misc/html-proofer/Gemfile.lock @@ -5,8 +5,8 @@ GEM public_suffix (>= 2.0.2, < 5.0) ethon (0.12.0) ffi (>= 1.3.0) - ffi (1.13.1) - html-proofer (3.18.2) + ffi (1.14.2) + html-proofer (3.18.3) addressable (~> 2.3) mercenary (~> 0.3) nokogumbo (~> 2.0) diff --git a/pkgs/tools/misc/html-proofer/gemset.nix b/pkgs/tools/misc/html-proofer/gemset.nix index 49f7726fc8b..da26cc347fe 100644 --- a/pkgs/tools/misc/html-proofer/gemset.nix +++ b/pkgs/tools/misc/html-proofer/gemset.nix @@ -26,10 +26,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "12lpwaw82bb0rm9f52v1498bpba8aj2l2q359mkwbxsswhpga5af"; + sha256 = "15hgiy09i8ywjihyzyvjvk42ivi3kmy6dm21s5sgg9j7y3h3zkkx"; type = "gem"; }; - version = "1.13.1"; + version = "1.14.2"; }; html-proofer = { dependencies = ["addressable" "mercenary" "nokogumbo" "parallel" "rainbow" "typhoeus" "yell"]; @@ -37,10 +37,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "06vbbm8qdmw4955522zh9wqn2214ajsf70y0vymxgl7dlwjd2pz0"; + sha256 = "0l0nkk0px6bc4g3xwc1c5fyi0c3n8sgl1zy94vqdzllfmkjvfggc"; type = "gem"; }; - version = "3.18.2"; + version = "3.18.3"; }; mercenary = { groups = ["default"];