From e601787f7ef196994efd1af403c135682cc4c0a7 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 31 Oct 2021 13:35:20 +0100 Subject: [PATCH 01/40] buildOcaml: rename name to pname --- pkgs/build-support/ocaml/default.nix | 6 +++--- .../ocaml-modules/bin_prot/default.nix | 2 +- .../ocaml-modules/comparelib/default.nix | 2 +- .../ocaml-modules/estring/default.nix | 2 +- .../ocaml-modules/faillib/default.nix | 2 +- .../ocaml-modules/herelib/default.nix | 2 +- .../janestreet/buildOcamlJane.nix | 18 ++++++++++++------ .../janestreet/js-build-tools.nix | 6 +++--- .../ocaml-modules/pa_bench/default.nix | 2 +- .../ocaml-modules/pa_ounit/default.nix | 2 +- .../ocaml-modules/pipebang/default.nix | 2 +- .../ocaml-modules/type_conv/112.01.01.nix | 2 +- .../ocaml-modules/typerep/default.nix | 2 +- .../ocaml-modules/variantslib/default.nix | 2 +- 14 files changed, 29 insertions(+), 23 deletions(-) diff --git a/pkgs/build-support/ocaml/default.nix b/pkgs/build-support/ocaml/default.nix index cd17eb688c2e..1fe99bb6320e 100644 --- a/pkgs/build-support/ocaml/default.nix +++ b/pkgs/build-support/ocaml/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }: -{ name, version, nativeBuildInputs ? [], +{ pname ? args.name, version, nativeBuildInputs ? [], createFindlibDestdir ? true, dontStrip ? true, minimumSupportedOcamlVersion ? null, @@ -17,13 +17,13 @@ in lib.versionOlder minimumSupportedOcamlVersion ocaml.version; stdenv.mkDerivation (args // { - name = "ocaml-${name}-${version}"; + name = "ocaml-${pname}-${version}"; nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ nativeBuildInputs; setupHook = if setupHook == null && hasSharedObjects then writeText "setupHook.sh" '' - export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/" + export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${pname}/" '' else setupHook; diff --git a/pkgs/development/ocaml-modules/bin_prot/default.nix b/pkgs/development/ocaml-modules/bin_prot/default.nix index 50ef935aff6b..3aa7cf0ec134 100644 --- a/pkgs/development/ocaml-modules/bin_prot/default.nix +++ b/pkgs/development/ocaml-modules/bin_prot/default.nix @@ -5,7 +5,7 @@ then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}" else buildOcaml rec { - name = "bin_prot"; + pname = "bin_prot"; version = "112.24.00"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/comparelib/default.nix b/pkgs/development/ocaml-modules/comparelib/default.nix index addba7a4b349..a1371e4f4d5e 100644 --- a/pkgs/development/ocaml-modules/comparelib/default.nix +++ b/pkgs/development/ocaml-modules/comparelib/default.nix @@ -1,7 +1,7 @@ {lib, buildOcaml, fetchurl, type_conv}: buildOcaml rec { - name = "comparelib"; + pname = "comparelib"; version = "113.00.00"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/estring/default.nix b/pkgs/development/ocaml-modules/estring/default.nix index 7424d14220dc..c0cc3398763c 100644 --- a/pkgs/development/ocaml-modules/estring/default.nix +++ b/pkgs/development/ocaml-modules/estring/default.nix @@ -5,7 +5,7 @@ then throw "estring is not available for OCaml ${ocaml.version}" else buildOcaml rec { - name = "estring"; + pname = "estring"; version = "1.3"; src = fetchurl { diff --git a/pkgs/development/ocaml-modules/faillib/default.nix b/pkgs/development/ocaml-modules/faillib/default.nix index 63040fadda5d..e2d90e06bdb5 100644 --- a/pkgs/development/ocaml-modules/faillib/default.nix +++ b/pkgs/development/ocaml-modules/faillib/default.nix @@ -6,7 +6,7 @@ else buildOcaml rec { minimumSupportedOcamlVersion = "4.00"; - name = "faillib"; + pname = "faillib"; version = "111.17.00"; src = fetchurl { diff --git a/pkgs/development/ocaml-modules/herelib/default.nix b/pkgs/development/ocaml-modules/herelib/default.nix index c5223637a158..b6f05fc46af3 100644 --- a/pkgs/development/ocaml-modules/herelib/default.nix +++ b/pkgs/development/ocaml-modules/herelib/default.nix @@ -2,7 +2,7 @@ buildOcaml rec { version = "112.35.00"; - name = "herelib"; + pname = "herelib"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix b/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix index 62876e5eaf94..13fcdff39239 100644 --- a/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix +++ b/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix @@ -1,14 +1,14 @@ { buildOcaml, opaline, js_build_tools, ocaml_oasis, fetchurl } : -{ name, version ? "113.33.03", buildInputs ? [], +{ pname, version ? "113.33.03", buildInputs ? [], hash ? "", minimumSupportedOcamlVersion ? "4.02", ... }@args: buildOcaml (args // { - inherit name version minimumSupportedOcamlVersion; + inherit pname version minimumSupportedOcamlVersion; src = fetchurl { - url = "https://github.com/janestreet/${name}/archive/${version}.tar.gz"; + url = "https://github.com/janestreet/${pname}/archive/${version}.tar.gz"; sha256 = hash; }; @@ -20,10 +20,16 @@ buildOcaml (args // { dontAddStaticConfigureFlags = true; configurePlatforms = []; - configurePhase = "./configure --prefix $out"; + configurePhase = '' + ./configure --prefix $out + ''; - buildPhase = "OCAML_TOPLEVEL_PATH=`ocamlfind query findlib`/.. make"; + buildPhase = '' + OCAML_TOPLEVEL_PATH=`ocamlfind query findlib`/.. make + ''; - installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install"; + installPhase = '' + opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${pname}.install + ''; }) diff --git a/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix b/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix index 2f68ee8230e7..4186b0649bad 100644 --- a/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix +++ b/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix @@ -1,13 +1,13 @@ { lib, buildOcaml, fetchurl, ocaml_oasis, opaline }: buildOcaml rec { - name = "js-build-tools"; + pname = "js-build-tools"; version = "113.33.06"; minimumSupportedOcamlVersion = "4.02"; src = fetchurl { - url = "https://github.com/janestreet/${name}/archive/${version}.tar.gz"; + url = "https://github.com/janestreet/js-build-tools/archive/${version}.tar.gz"; sha256 = "1nvgyp4gsnlnpix3li6kr90b12iin5ihichv298p03i6h2809dia"; }; @@ -19,7 +19,7 @@ buildOcaml rec { dontAddStaticConfigureFlags = true; configurePlatforms = []; configurePhase = "./configure --prefix $prefix"; - installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install"; + installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR js-build-tools.install"; patches = [ ./js-build-tools-darwin.patch ]; diff --git a/pkgs/development/ocaml-modules/pa_bench/default.nix b/pkgs/development/ocaml-modules/pa_bench/default.nix index e5f9ac52067d..a2de553961a4 100644 --- a/pkgs/development/ocaml-modules/pa_bench/default.nix +++ b/pkgs/development/ocaml-modules/pa_bench/default.nix @@ -1,7 +1,7 @@ {lib, buildOcaml, fetchurl, type_conv, pa_ounit}: buildOcaml rec { - name = "pa_bench"; + pname = "pa_bench"; version = "113.00.00"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/pa_ounit/default.nix b/pkgs/development/ocaml-modules/pa_ounit/default.nix index 26d000042227..a9e49bab34a1 100644 --- a/pkgs/development/ocaml-modules/pa_ounit/default.nix +++ b/pkgs/development/ocaml-modules/pa_ounit/default.nix @@ -5,7 +5,7 @@ then throw "pa_ounit is not available for OCaml ${ocaml.version}" else buildOcaml rec { - name = "pa_ounit"; + pname = "pa_ounit"; version = "113.00.00"; src = fetchurl { diff --git a/pkgs/development/ocaml-modules/pipebang/default.nix b/pkgs/development/ocaml-modules/pipebang/default.nix index 36eb3fe54bbe..96cfc82bc2fb 100644 --- a/pkgs/development/ocaml-modules/pipebang/default.nix +++ b/pkgs/development/ocaml-modules/pipebang/default.nix @@ -1,7 +1,7 @@ {lib, buildOcaml, fetchurl}: buildOcaml rec { - name = "pipebang"; + pname = "pipebang"; version = "113.00.00"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/type_conv/112.01.01.nix b/pkgs/development/ocaml-modules/type_conv/112.01.01.nix index 3fa9042b0351..c71bfa00e7ef 100644 --- a/pkgs/development/ocaml-modules/type_conv/112.01.01.nix +++ b/pkgs/development/ocaml-modules/type_conv/112.01.01.nix @@ -3,7 +3,7 @@ buildOcaml rec { minimumSupportedOcamlVersion = "4.02"; - name = "type_conv"; + pname = "type_conv"; version = "113.00.02"; src = fetchurl { diff --git a/pkgs/development/ocaml-modules/typerep/default.nix b/pkgs/development/ocaml-modules/typerep/default.nix index 5a38bd708f7b..c51d28f9e19b 100644 --- a/pkgs/development/ocaml-modules/typerep/default.nix +++ b/pkgs/development/ocaml-modules/typerep/default.nix @@ -1,7 +1,7 @@ { lib, buildOcaml, fetchFromGitHub, type_conv }: buildOcaml rec { - name = "typerep"; + pname = "typerep"; version = "112.24.00"; minimumSupportedOcamlVersion = "4.00"; diff --git a/pkgs/development/ocaml-modules/variantslib/default.nix b/pkgs/development/ocaml-modules/variantslib/default.nix index aaddda3c11bc..25d379f51648 100644 --- a/pkgs/development/ocaml-modules/variantslib/default.nix +++ b/pkgs/development/ocaml-modules/variantslib/default.nix @@ -5,7 +5,7 @@ then throw "variantslib-109.15.03 is not available for OCaml ${ocaml.version}" else buildOcaml rec { - name = "variantslib"; + pname = "variantslib"; version = "109.15.03"; minimumSupportedOcamlVersion = "4.00"; From 6739a8c5e8025972a00bb143e2284221985cddf7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 29 Sep 2021 01:56:20 +0200 Subject: [PATCH 02/40] matrix-synapse: unpin frozendict --- pkgs/servers/matrix-synapse/default.nix | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index 5236f85a4ffe..e2bdc793a582 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -5,26 +5,10 @@ }: let -py = python3.override { - packageOverrides = self: super: { - frozendict = super.frozendict.overridePythonAttrs (oldAttrs: rec { - version = "1.2"; - src = oldAttrs.src.override { - inherit version; - sha256 = "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"; - }; - doCheck = false; - }); - }; -}; -in - -with py.pkgs; - -let - plugins = py.pkgs.callPackage ./plugins { }; + plugins = python3.pkgs.callPackage ./plugins { }; tools = callPackage ./tools { }; in +with python3.pkgs; buildPythonApplication rec { pname = "matrix-synapse"; version = "1.45.1"; @@ -82,13 +66,13 @@ buildPythonApplication rec { doCheck = !stdenv.isDarwin; checkPhase = '' - PYTHONPATH=".:$PYTHONPATH" ${py.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tests + PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tests ''; passthru.tests = { inherit (nixosTests) matrix-synapse; }; passthru.plugins = plugins; passthru.tools = tools; - passthru.python = py; + passthru.python = python3; meta = with lib; { homepage = "https://matrix.org"; From 181dd7e7422a13dc5449d5a24590c1bdbf58db23 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 4 Nov 2021 13:33:43 +0100 Subject: [PATCH 03/40] fedigroups: init at 0.4.4 --- pkgs/servers/fedigroups/default.nix | 40 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/servers/fedigroups/default.nix diff --git a/pkgs/servers/fedigroups/default.nix b/pkgs/servers/fedigroups/default.nix new file mode 100644 index 000000000000..fe3f2f351ace --- /dev/null +++ b/pkgs/servers/fedigroups/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitea +, rustPlatform +, pkg-config +, openssl +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "fedigroups"; + version = "0.4.4"; + + src = fetchFromGitea { + domain = "git.ondrovo.com"; + owner = "MightyPork"; + repo = "group-actor"; + rev = "v${version}"; + sha256 = "sha256-1WqIQp16bs+UB+NSEZn0JH6NOkuAx8iUfho4roA2B00="; + }; + + cargoHash = "sha256-88ToWRkBDXUvnEB2K6q5f3+IMuC3zNzrXrVFZnjbA9o="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ] ++ lib.optional stdenv.isDarwin Security; + + meta = with lib; { + homepage = "https://git.ondrovo.com/MightyPork/group-actor#fedi-groups"; + downloadPage = "https://git.ondrovo.com/MightyPork/group-actor/releases"; + description = "An approximation of groups usable with Fediverse software that implements the Mastodon client API"; + license = licenses.mit; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6131804f4fd9..8a46514eff6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20571,6 +20571,10 @@ with pkgs; fcgiwrap = callPackage ../servers/fcgiwrap { }; + fedigroups = callPackage ../servers/fedigroups { + inherit (darwin.apple_sdk.frameworks) Security; + }; + felix = callPackage ../servers/felix { }; felix_remoteshell = callPackage ../servers/felix/remoteshell.nix { }; From ad2f75b5597a64ced96bf13095f9c6c01e7265c6 Mon Sep 17 00:00:00 2001 From: gardspirito Date: Thu, 4 Nov 2021 19:53:23 +0300 Subject: [PATCH 04/40] alfis: Add support for GUI dialogs --- pkgs/applications/blockchains/alfis/default.nix | 13 +++++++++---- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/blockchains/alfis/default.nix b/pkgs/applications/blockchains/alfis/default.nix index 7a808d2c72e9..58d2ecce53aa 100644 --- a/pkgs/applications/blockchains/alfis/default.nix +++ b/pkgs/applications/blockchains/alfis/default.nix @@ -1,6 +1,5 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config -, withGui ? true, webkitgtk, Cocoa, WebKit -}: +{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, withGui ? true +, webkitgtk, Cocoa, WebKit, dialog, makeWrapper }: rustPlatform.buildRustPackage rec { pname = "alfis"; @@ -27,10 +26,16 @@ rustPlatform.buildRustPackage rec { "--skip=dns::client::tests::test_udp_client" ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config makeWrapper ]; buildInputs = lib.optional (withGui && stdenv.isLinux) webkitgtk ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ]; + postInstall = lib.optionalString (withGui && stdenv.isLinux) '' + cp $out/bin/alfis{,_unwrapped} + makeWrapper $out/bin/alfis{_unwrapped,} \ + --prefix PATH : ${lib.makeBinPath [ dialog ]} + ''; + meta = with lib; { description = "Alternative Free Identity System"; homepage = "https://alfis.name"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 67c75abd5945..45b8c8451fce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28669,6 +28669,7 @@ with pkgs; alfis = callPackage ../applications/blockchains/alfis { inherit (darwin.apple_sdk.frameworks) Cocoa WebKit; + dialog = gnome.zenity; }; alfis-nogui = alfis.override { withGui = false; From 01537c17e114abb5d784297249ce0f544b7536ff Mon Sep 17 00:00:00 2001 From: gardspirito Date: Mon, 8 Nov 2021 17:25:59 +0300 Subject: [PATCH 05/40] matrix-synapse: compile only against zenity & use `wrapProgram` instead of `makeWrapper` --- pkgs/applications/blockchains/alfis/default.nix | 7 +++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/blockchains/alfis/default.nix b/pkgs/applications/blockchains/alfis/default.nix index 58d2ecce53aa..0738661c0596 100644 --- a/pkgs/applications/blockchains/alfis/default.nix +++ b/pkgs/applications/blockchains/alfis/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, withGui ? true -, webkitgtk, Cocoa, WebKit, dialog, makeWrapper }: +, webkitgtk, Cocoa, WebKit, zenity, makeWrapper }: rustPlatform.buildRustPackage rec { pname = "alfis"; @@ -31,9 +31,8 @@ rustPlatform.buildRustPackage rec { ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ]; postInstall = lib.optionalString (withGui && stdenv.isLinux) '' - cp $out/bin/alfis{,_unwrapped} - makeWrapper $out/bin/alfis{_unwrapped,} \ - --prefix PATH : ${lib.makeBinPath [ dialog ]} + wrapProgram $out/bin/alfis \ + --prefix PATH : ${lib.makeBinPath [ zenity ]} ''; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 45b8c8451fce..cc8e4e92bdc1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28669,7 +28669,7 @@ with pkgs; alfis = callPackage ../applications/blockchains/alfis { inherit (darwin.apple_sdk.frameworks) Cocoa WebKit; - dialog = gnome.zenity; + inherit (gnome) zenity; }; alfis-nogui = alfis.override { withGui = false; From 104b1e776e8667c7033fea084409320a567656e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 11 Nov 2021 15:07:53 -0800 Subject: [PATCH 06/40] python3Packages.pikepdf: 3.2.0 -> 4.0.1.post1 --- pkgs/development/python-modules/pikepdf/default.nix | 4 ++-- pkgs/development/python-modules/pikepdf/paths.patch | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix index ab78f2262445..9f04e68a378f 100644 --- a/pkgs/development/python-modules/pikepdf/default.nix +++ b/pkgs/development/python-modules/pikepdf/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { pname = "pikepdf"; - version = "3.2.0"; + version = "4.0.1.post1"; disabled = ! isPy3k; src = fetchFromGitHub { @@ -37,7 +37,7 @@ buildPythonPackage rec { extraPostFetch = '' rm "$out/.git_archival.txt" ''; - sha256 = "03c7ihd6rf6kdfc3cpgxy5pi6cj4zwscz8nyxmmp15fmdk3hkw4g"; + sha256 = "sha256-s7eS7jYGohYt75/r++4v9K6BRfiQ3drdG5wbIL3WoiU="; }; patches = [ diff --git a/pkgs/development/python-modules/pikepdf/paths.patch b/pkgs/development/python-modules/pikepdf/paths.patch index 807041696ad6..17349f7ac209 100644 --- a/pkgs/development/python-modules/pikepdf/paths.patch +++ b/pkgs/development/python-modules/pikepdf/paths.patch @@ -1,16 +1,16 @@ diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py -index 70cdc9e..c3a14d0 100644 +index 9db6b49..4020bcf 100644 --- a/src/pikepdf/_methods.py +++ b/src/pikepdf/_methods.py -@@ -190,7 +190,7 @@ def _mudraw(buffer, fmt) -> bytes: +@@ -204,7 +204,7 @@ def _mudraw(buffer, fmt) -> bytes: tmp_in.flush() proc = run( - ['mudraw', '-F', fmt, '-o', '-', tmp_in.name], + ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name], - stdout=PIPE, - stderr=PIPE, + capture_output=True, check=True, + ) diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py index 80cc910..64f6d31 100644 --- a/src/pikepdf/jbig2.py From 3f89726b4bf20df63e6bb8763d0560880740e364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 11 Nov 2021 15:02:34 -0800 Subject: [PATCH 07/40] python3Packages.ocrmypdf: 12.7.0 -> 12.7.2 --- pkgs/development/python-modules/ocrmypdf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index b6aef62dd74d..71506e60b60e 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -30,7 +30,7 @@ buildPythonPackage rec { pname = "ocrmypdf"; - version = "12.7.0"; + version = "12.7.2"; src = fetchFromGitHub { owner = "jbarlow83"; @@ -42,7 +42,7 @@ buildPythonPackage rec { extraPostFetch = '' rm "$out/.git_archival.txt" ''; - sha256 = "sha256-lpTuaZRrmFoKV1SAFoGpsYfPBkLB2+iB63fg3t9RC5o="; + sha256 = "sha256-+mh7NgAk7R/94FXjRV+SLy478pZwYLLS8HwCazEbMf4="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From d35645f0778492244b7f35f8af907ed6bdc7f6a8 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:05 +0000 Subject: [PATCH 08/40] linux: 4.14.254 -> 4.14.255 --- pkgs/os-specific/linux/kernel/linux-4.14.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-4.14.nix b/pkgs/os-specific/linux/kernel/linux-4.14.nix index 44740e746004..2073d28f078f 100644 --- a/pkgs/os-specific/linux/kernel/linux-4.14.nix +++ b/pkgs/os-specific/linux/kernel/linux-4.14.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "4.14.254"; + version = "4.14.255"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; - sha256 = "0ihdlsg4jg9wwhhcbjjmrcchnl9pc0szh21nwmbhwnxgqcdmrnfz"; + sha256 = "1mxjwqijnlvrdbpd973kdycz1dwklfkj9vpnj1cihgsf880q02zh"; }; } // (args.argsOverride or {})) From c3bbc214cdddeaeb1fd0c0c28c2afcca46624247 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:10 +0000 Subject: [PATCH 09/40] linux: 4.19.216 -> 4.19.217 --- pkgs/os-specific/linux/kernel/linux-4.19.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-4.19.nix b/pkgs/os-specific/linux/kernel/linux-4.19.nix index b0b96b010c70..1e813076d1f9 100644 --- a/pkgs/os-specific/linux/kernel/linux-4.19.nix +++ b/pkgs/os-specific/linux/kernel/linux-4.19.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "4.19.216"; + version = "4.19.217"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; - sha256 = "0cs8yy5jfbvvi5j9f3kzyc4j0fjylxdj1641f53ga6gkmjmayv3d"; + sha256 = "01500jcjvhbkn7xcan564jw0nnwc12cf8hhvl8118jqqqw612lc5"; }; } // (args.argsOverride or {})) From cf1d695ba6125c382a467d2f10d5e426b73ce5e2 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:16 +0000 Subject: [PATCH 10/40] linux: 4.4.291 -> 4.4.292 --- pkgs/os-specific/linux/kernel/linux-4.4.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-4.4.nix b/pkgs/os-specific/linux/kernel/linux-4.4.nix index a4e3ee5f9da8..f39340b59bca 100644 --- a/pkgs/os-specific/linux/kernel/linux-4.4.nix +++ b/pkgs/os-specific/linux/kernel/linux-4.4.nix @@ -1,12 +1,12 @@ { buildPackages, fetchurl, perl, buildLinux, nixosTests, stdenv, ... } @ args: buildLinux (args // rec { - version = "4.4.291"; + version = "4.4.292"; extraMeta.branch = "4.4"; extraMeta.broken = stdenv.isAarch64; src = fetchurl { url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; - sha256 = "0lbbvv3ha4d8nwzjh8bdk0aqyd12w6gw0nsxsdnp8pbmnndgb9vh"; + sha256 = "0v5rz8na1d458grc49x3j1951mhvxvqzjq5g9rv1hi0p9rjala97"; }; } // (args.argsOverride or {})) From e2e94278730774290b25f35f32489be92989dfc7 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:21 +0000 Subject: [PATCH 11/40] linux: 4.9.289 -> 4.9.290 --- pkgs/os-specific/linux/kernel/linux-4.9.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-4.9.nix b/pkgs/os-specific/linux/kernel/linux-4.9.nix index 424d3b690e63..f58f7c4a7e4d 100644 --- a/pkgs/os-specific/linux/kernel/linux-4.9.nix +++ b/pkgs/os-specific/linux/kernel/linux-4.9.nix @@ -1,12 +1,12 @@ { buildPackages, fetchurl, perl, buildLinux, nixosTests, stdenv, ... } @ args: buildLinux (args // rec { - version = "4.9.289"; + version = "4.9.290"; extraMeta.branch = "4.9"; extraMeta.broken = stdenv.isAarch64; src = fetchurl { url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; - sha256 = "19kz74qgw5yzfinnsvljmn2zm855lr4cxgfpn8gwljmkspyx1hm5"; + sha256 = "1ns0xbcgv0ix4b3xkcws8g3ks1a31kzc5whmkf9arz1k8si5mpnd"; }; } // (args.argsOverride or {})) From 6caad489e23b0a934f08fddcf0f00501ee317611 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:29 +0000 Subject: [PATCH 12/40] linux: 5.10.78 -> 5.10.79 --- pkgs/os-specific/linux/kernel/linux-5.10.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-5.10.nix b/pkgs/os-specific/linux/kernel/linux-5.10.nix index 39eccf966f00..05f2b07ecc22 100644 --- a/pkgs/os-specific/linux/kernel/linux-5.10.nix +++ b/pkgs/os-specific/linux/kernel/linux-5.10.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "5.10.78"; + version = "5.10.79"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - sha256 = "03q5lrv8gr9hnm7984pxi9kwsvxrn21qwykj60amisi2wac6r05y"; + sha256 = "1bd86ywff2mv73sybjdjlvvvhnmsv891jlm17h5nvqifdbhmb6g4"; }; } // (args.argsOverride or {})) From 43ebf911768d80d39314c756a5b218e8c1f958de Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:36 +0000 Subject: [PATCH 13/40] linux: 5.14.17 -> 5.14.18 --- pkgs/os-specific/linux/kernel/linux-5.14.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-5.14.nix b/pkgs/os-specific/linux/kernel/linux-5.14.nix index 9d5329c166ec..66bbb131d8c1 100644 --- a/pkgs/os-specific/linux/kernel/linux-5.14.nix +++ b/pkgs/os-specific/linux/kernel/linux-5.14.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "5.14.17"; + version = "5.14.18"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - sha256 = "0q7df51yk6di1m8ky0gplkyx6smlr9inxrd569qv3ww3ykg933sd"; + sha256 = "1pr7qh2wjw7h6r3fixg9ia5r3na7vdb6b4sp9wnbifnqckahzwis"; }; } // (args.argsOverride or { })) From e5d1ac060f0af563cf632461b70d9b475e3f53cd Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:44 +0000 Subject: [PATCH 14/40] linux: 5.15.1 -> 5.15.2 --- pkgs/os-specific/linux/kernel/linux-5.15.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-5.15.nix b/pkgs/os-specific/linux/kernel/linux-5.15.nix index 0b4bd5790423..e6ec3549aeb5 100644 --- a/pkgs/os-specific/linux/kernel/linux-5.15.nix +++ b/pkgs/os-specific/linux/kernel/linux-5.15.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "5.15.1"; + version = "5.15.2"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - sha256 = "1j0lnrsj5y2bsmmym8pjc5wk4wb11y336zr9gad1nmxcr0rwvz9j"; + sha256 = "0xdi799k15l7l9kxlq4qbp79mp1c38vxal4z4p9l5gl194x06d2n"; }; } // (args.argsOverride or { })) From c6d6891185632d000076a4f42e5298773c2497e8 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:02:52 +0000 Subject: [PATCH 15/40] linux: 5.4.158 -> 5.4.159 --- pkgs/os-specific/linux/kernel/linux-5.4.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-5.4.nix b/pkgs/os-specific/linux/kernel/linux-5.4.nix index 05d33cb4697e..a3cd3c0f9db2 100644 --- a/pkgs/os-specific/linux/kernel/linux-5.4.nix +++ b/pkgs/os-specific/linux/kernel/linux-5.4.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "5.4.158"; + version = "5.4.159"; # modDirVersion needs to be x.y.z, will automatically add .0 if needed modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; @@ -13,6 +13,6 @@ buildLinux (args // rec { src = fetchurl { url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - sha256 = "0ncdkf1iz49458k3dvq3dc5b2r9dp21jsn3ffm9lbhlgvkn8y0bf"; + sha256 = "0hw68yjf0c8kahwra8hq863318cbyqc89f429z75scmb9rgk466p"; }; } // (args.argsOverride or {})) From b5353b2905b8754903a3df2a7cfa7554cf367d36 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:03:30 +0000 Subject: [PATCH 16/40] linux/hardened/patches/4.19: 4.19.215-hardened1 -> 4.19.216-hardened1 --- pkgs/os-specific/linux/kernel/hardened/patches.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/hardened/patches.json b/pkgs/os-specific/linux/kernel/hardened/patches.json index 822ab6e0dddd..173f54c46995 100644 --- a/pkgs/os-specific/linux/kernel/hardened/patches.json +++ b/pkgs/os-specific/linux/kernel/hardened/patches.json @@ -12,12 +12,12 @@ "4.19": { "patch": { "extra": "-hardened1", - "name": "linux-hardened-4.19.215-hardened1.patch", - "sha256": "05m3x3aafwp9msmqb2h1mys54xlsq17477blhb0d3b3nyj3qv503", - "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.215-hardened1/linux-hardened-4.19.215-hardened1.patch" + "name": "linux-hardened-4.19.216-hardened1.patch", + "sha256": "0a8rg0lc0pj6zlkbrd3fjrjgg3f18918zzs8q4nld092hqjfjbsm", + "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.216-hardened1/linux-hardened-4.19.216-hardened1.patch" }, - "sha256": "1czjqa5wbsmzgl7wwqlp9qbdig45ibq11m9pcykrjaclrgwn884y", - "version": "4.19.215" + "sha256": "0cs8yy5jfbvvi5j9f3kzyc4j0fjylxdj1641f53ga6gkmjmayv3d", + "version": "4.19.216" }, "5.10": { "patch": { From 3b035cff603293c0a0ada8697025379585004c02 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:03:38 +0000 Subject: [PATCH 17/40] linux/hardened/patches/5.10: 5.10.77-hardened1 -> 5.10.78-hardened1 --- pkgs/os-specific/linux/kernel/hardened/patches.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/hardened/patches.json b/pkgs/os-specific/linux/kernel/hardened/patches.json index 173f54c46995..63afe94709ac 100644 --- a/pkgs/os-specific/linux/kernel/hardened/patches.json +++ b/pkgs/os-specific/linux/kernel/hardened/patches.json @@ -22,12 +22,12 @@ "5.10": { "patch": { "extra": "-hardened1", - "name": "linux-hardened-5.10.77-hardened1.patch", - "sha256": "1y5rdd7irlljjsw7kdv6v8issbhab3hzywggz5igca72qiy7gcwl", - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.77-hardened1/linux-hardened-5.10.77-hardened1.patch" + "name": "linux-hardened-5.10.78-hardened1.patch", + "sha256": "06jbxx6vcd6xa0f8y80im14cdwb8dsk21kx18q7c77gjw628b1i1", + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.78-hardened1/linux-hardened-5.10.78-hardened1.patch" }, - "sha256": "1hwgbcfv9wfx9ka25lsqjrnzskynfgmswcyp5vk14wnxq7glxdnk", - "version": "5.10.77" + "sha256": "03q5lrv8gr9hnm7984pxi9kwsvxrn21qwykj60amisi2wac6r05y", + "version": "5.10.78" }, "5.14": { "patch": { From dd5de73eba4bc9f8e20559356f9f2c644f89517b Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:03:46 +0000 Subject: [PATCH 18/40] linux/hardened/patches/5.14: 5.14.16-hardened1 -> 5.14.17-hardened1 --- pkgs/os-specific/linux/kernel/hardened/patches.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/hardened/patches.json b/pkgs/os-specific/linux/kernel/hardened/patches.json index 63afe94709ac..a8d1302cfaf9 100644 --- a/pkgs/os-specific/linux/kernel/hardened/patches.json +++ b/pkgs/os-specific/linux/kernel/hardened/patches.json @@ -32,12 +32,12 @@ "5.14": { "patch": { "extra": "-hardened1", - "name": "linux-hardened-5.14.16-hardened1.patch", - "sha256": "0k9n9k25bmzn3wsqkmjc27md7vc5qwg5a79zmwfw0adwlfwlgi5y", - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.14.16-hardened1/linux-hardened-5.14.16-hardened1.patch" + "name": "linux-hardened-5.14.17-hardened1.patch", + "sha256": "08s26hmmaji51aczh9spbg8ngbxz5mr067dgi05djp3cgs2hl5pw", + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.14.17-hardened1/linux-hardened-5.14.17-hardened1.patch" }, - "sha256": "005wis2y5dhksb6n0r4p3xjldppmdnd360dhxa04rfc4z2qwn3f3", - "version": "5.14.16" + "sha256": "0q7df51yk6di1m8ky0gplkyx6smlr9inxrd569qv3ww3ykg933sd", + "version": "5.14.17" }, "5.4": { "patch": { From 5bb24d504b6c41b38479519e3c7c7270a4a1da5f Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Fri, 12 Nov 2021 19:03:54 +0000 Subject: [PATCH 19/40] linux/hardened/patches/5.4: 5.4.157-hardened1 -> 5.4.158-hardened1 --- pkgs/os-specific/linux/kernel/hardened/patches.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/hardened/patches.json b/pkgs/os-specific/linux/kernel/hardened/patches.json index a8d1302cfaf9..f6c95acf4c6f 100644 --- a/pkgs/os-specific/linux/kernel/hardened/patches.json +++ b/pkgs/os-specific/linux/kernel/hardened/patches.json @@ -42,11 +42,11 @@ "5.4": { "patch": { "extra": "-hardened1", - "name": "linux-hardened-5.4.157-hardened1.patch", - "sha256": "0651l6qambsdy7p1jry2ylf806gr66v6zrfz8lk0dndlhsgbb3dq", - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.157-hardened1/linux-hardened-5.4.157-hardened1.patch" + "name": "linux-hardened-5.4.158-hardened1.patch", + "sha256": "1pnxwvy5x04b95bfia63916qlrj5mrp2d54dcc4hg5k29vm0z6a5", + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.158-hardened1/linux-hardened-5.4.158-hardened1.patch" }, - "sha256": "0jl62j22vs59bc90mvzavv0ii9hvk436pbnrpqf3x9f8nfybngwz", - "version": "5.4.157" + "sha256": "0ncdkf1iz49458k3dvq3dc5b2r9dp21jsn3ffm9lbhlgvkn8y0bf", + "version": "5.4.158" } } From 2af01eee3d6b919e1bc251648d17cc2f2dab0c8f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Nov 2021 23:11:59 +0100 Subject: [PATCH 20/40] python3Packages.json-schema-for-humans: 0.31.0 -> 0.39.1 --- .../json-schema-for-humans/default.nix | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/json-schema-for-humans/default.nix b/pkgs/development/python-modules/json-schema-for-humans/default.nix index 8df7d6f6e00f..9e6144a8ec26 100644 --- a/pkgs/development/python-modules/json-schema-for-humans/default.nix +++ b/pkgs/development/python-modules/json-schema-for-humans/default.nix @@ -2,14 +2,16 @@ , beautifulsoup4 , buildPythonPackage , click +, dataclasses , dataclasses-json , fetchFromGitHub , htmlmin , jinja2 , markdown2 -, pbr +, poetry-core , pygments , pytestCheckHook +, pythonOlder , pytz , pyyaml , requests @@ -17,16 +19,21 @@ buildPythonPackage rec { pname = "json-schema-for-humans"; - version = "0.31.0"; + version = "0.39.1"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "coveooss"; repo = pname; rev = "v${version}"; - sha256 = "1aj1w0qxdw8d6mf5vngk0xjgs7z8vzwc2aycahnkqg7q3cagq19n"; + sha256 = "sha256-JoD4XEfIUsAbITWa0LMYgNP6WzrblI4HUIgLpx5gn18="; }; - nativeBuildInputs = [ pbr ]; + nativeBuildInputs = [ + poetry-core + ]; propagatedBuildInputs = [ click @@ -38,12 +45,10 @@ buildPythonPackage rec { pytz pyyaml requests + ] ++ lib.optionals (pythonOlder "3.7") [ + dataclasses ]; - preBuild = '' - export PBR_VERSION=0.0.1 - ''; - checkInputs = [ beautifulsoup4 pytestCheckHook @@ -52,9 +57,13 @@ buildPythonPackage rec { disabledTests = [ # Tests require network access "test_references_url" + # Tests are failing + "TestMdGenerate" ]; - pythonImportsCheck = [ "json_schema_for_humans" ]; + pythonImportsCheck = [ + "json_schema_for_humans" + ]; meta = with lib; { description = "Quickly generate HTML documentation from a JSON schema"; From 8956b48fa13020684b8d096c86c89bffe0f3daa7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Nov 2021 23:15:58 +0100 Subject: [PATCH 21/40] python3Packages.libcst: 0.3.20 -> 0.3.21 --- pkgs/development/python-modules/libcst/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/libcst/default.nix b/pkgs/development/python-modules/libcst/default.nix index 5b950ab57397..712b15f17f22 100644 --- a/pkgs/development/python-modules/libcst/default.nix +++ b/pkgs/development/python-modules/libcst/default.nix @@ -15,11 +15,11 @@ buildPythonPackage rec { pname = "libcst"; - version = "0.3.20"; + version = "0.3.21"; + format = "setuptools"; + disabled = pythonOlder "3.6"; - # Some files for tests missing from PyPi - # https://github.com/Instagram/LibCST/issues/331 src = fetchFromGitHub { owner = "instagram"; repo = pname; @@ -54,7 +54,9 @@ buildPythonPackage rec { "test_codemod_formatter_error_input" ]; - pythonImportsCheck = [ "libcst" ]; + pythonImportsCheck = [ + "libcst" + ]; meta = with lib; { description = "Concrete Syntax Tree (CST) parser and serializer library for Python"; From 60cef5d908cee6485a056622efa43f34984d6f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:41:28 +0100 Subject: [PATCH 22/40] fftw: switch to pname+version, minor formatting, fix input option, remove ? null from inputs --- pkgs/development/libraries/fftw/default.nix | 48 +++++++++------------ 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/pkgs/development/libraries/fftw/default.nix b/pkgs/development/libraries/fftw/default.nix index 37a7f1ce8fe4..7f4188208ff6 100644 --- a/pkgs/development/libraries/fftw/default.nix +++ b/pkgs/development/libraries/fftw/default.nix @@ -3,7 +3,7 @@ , lib , gfortran , perl -, llvmPackages ? null +, llvmPackages , precision ? "double" , enableAvx ? stdenv.hostPlatform.avxSupport , enableAvx2 ? stdenv.hostPlatform.avx2Support @@ -11,56 +11,50 @@ , enableFma ? stdenv.hostPlatform.fmaSupport , enableMpi ? false , mpi +, withDoc ? stdenv.cc.isGNU }: -with lib; -assert stdenv.cc.isClang -> llvmPackages != null; -assert elem precision [ "single" "double" "long-double" "quad-precision" ]; +assert lib.elem precision [ "single" "double" "long-double" "quad-precision" ]; -let +stdenv.mkDerivation rec { + pname = "fftw-${precision}"; version = "3.3.9"; - withDoc = stdenv.cc.isGNU; -in - -stdenv.mkDerivation { - name = "fftw-${precision}-${version}"; src = fetchurl { urls = [ - "http://fftw.org/fftw-${version}.tar.gz" + "https://fftw.org/fftw-${version}.tar.gz" "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz" ]; sha256 = "sha256-vyx85AsEroEa9xTetRJRDMLBe5q51t3PSf5Eh+6nrz0="; }; outputs = [ "out" "dev" "man" ] - ++ optional withDoc "info"; # it's dev-doc only + ++ lib.optional withDoc "info"; # it's dev-doc only outputBin = "dev"; # fftw-wisdom nativeBuildInputs = [ gfortran ]; - buildInputs = optionals stdenv.cc.isClang [ + buildInputs = lib.optionals stdenv.cc.isClang [ # TODO: This may mismatch the LLVM version sin the stdenv, see #79818. llvmPackages.openmp - ] ++ optional enableMpi mpi; + ] ++ lib.optional enableMpi mpi; - configureFlags = - [ "--enable-shared" - "--enable-threads" - ] - ++ optional (precision != "double") "--enable-${precision}" + configureFlags = [ + "--enable-shared" + "--enable-threads" + "--enable-openmp" + ] ++ lib.optional (precision != "double") "--enable-${precision}" # all x86_64 have sse2 # however, not all float sizes fit - ++ optional (stdenv.isx86_64 && (precision == "single" || precision == "double") ) "--enable-sse2" - ++ optional enableAvx "--enable-avx" - ++ optional enableAvx2 "--enable-avx2" - ++ optional enableAvx512 "--enable-avx512" - ++ optional enableFma "--enable-fma" - ++ [ "--enable-openmp" ] - ++ optional enableMpi "--enable-mpi" + ++ lib.optional (stdenv.isx86_64 && (precision == "single" || precision == "double") ) "--enable-sse2" + ++ lib.optional enableAvx "--enable-avx" + ++ lib.optional enableAvx2 "--enable-avx2" + ++ lib.optional enableAvx512 "--enable-avx512" + ++ lib.optional enableFma "--enable-fma" + ++ lib.optional enableMpi "--enable-mpi" # doc generation causes Fortran wrapper generation which hard-codes gcc - ++ optional (!withDoc) "--disable-doc"; + ++ lib.optional (!withDoc) "--disable-doc"; enableParallelBuilding = true; From bbd3f7f31c2233a301082d5c671c3ae7a3ce2ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:42:03 +0100 Subject: [PATCH 23/40] stfl: use normal make phase --- pkgs/development/libraries/stfl/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/stfl/default.nix b/pkgs/development/libraries/stfl/default.nix index 20676c16b9c6..56b97235b0c1 100644 --- a/pkgs/development/libraries/stfl/default.nix +++ b/pkgs/development/libraries/stfl/default.nix @@ -10,13 +10,11 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses libiconv ]; - buildPhase = '' + preBuild = '' sed -i s/gcc/cc/g Makefile sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h - '' + ( lib.optionalString stdenv.isDarwin '' + '' + lib.optionalString stdenv.isDarwin '' sed -i s/-soname/-install_name/ Makefile - '' ) + '' - make ''; installPhase = '' @@ -26,11 +24,11 @@ stdenv.mkDerivation rec { ln -s $out/lib/libstfl.so.0.24 $out/lib/libstfl.so.0 ''; - meta = { + meta = with lib; { homepage = "http://www.clifford.at/stfl/"; description = "A library which implements a curses-based widget set for text terminals"; - maintainers = with lib.maintainers; [ lovek323 ]; - license = lib.licenses.lgpl3; - platforms = lib.platforms.unix; + maintainers = with maintainers; [ lovek323 ]; + license = licenses.lgpl3; + platforms = platforms.unix; }; } From 86da7c95cd2a5075da6ebe20ffed1b5577b1d819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:42:24 +0100 Subject: [PATCH 24/40] telepathy.qt: cleanup inherit, update meta --- .../libraries/telepathy/qt/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/telepathy/qt/default.nix b/pkgs/development/libraries/telepathy/qt/default.nix index dbbaca7e11a7..f11759b01f54 100644 --- a/pkgs/development/libraries/telepathy/qt/default.nix +++ b/pkgs/development/libraries/telepathy/qt/default.nix @@ -1,20 +1,19 @@ -{ lib, stdenv, fetchurl, cmake, qtbase, pkg-config, python3Packages, dbus-glib, dbus +{ lib, stdenv, fetchurl, cmake, qtbase, pkg-config, python3, dbus-glib, dbus , telepathy-farstream, telepathy-glib }: -let - inherit (python3Packages) python dbus-python; -in stdenv.mkDerivation rec { - name = "telepathy-qt-0.9.8"; +stdenv.mkDerivation rec { + pname = "telepathy-qt"; + version = "0.9.8"; src = fetchurl { - url = "https://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; + url = "https://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-${version}.tar.gz"; sha256 = "bf8e2a09060addb80475a4938105b9b41d9e6837999b7a00e5351783857e18ad"; }; - nativeBuildInputs = [ cmake pkg-config python ]; + nativeBuildInputs = [ cmake pkg-config python3 ]; propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ]; buildInputs = [ dbus-glib ]; - checkInputs = [ dbus.daemon dbus-python ]; + checkInputs = [ dbus.daemon python3.pkgs.dbus-python ]; # No point in building tests if they are not run # On 0.9.7, they do not even build with QT4 @@ -29,5 +28,6 @@ in stdenv.mkDerivation rec { homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/"; license = licenses.lgpl21; platforms = platforms.linux; + maintainers = with maintainers; [ ]; }; } From 284681784712e73991c8c5d1f3643d61fcc261e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:42:45 +0100 Subject: [PATCH 25/40] tokyo-tyrant: format, remove arbitrary choice --- .../libraries/tokyo-tyrant/default.nix | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/pkgs/development/libraries/tokyo-tyrant/default.nix b/pkgs/development/libraries/tokyo-tyrant/default.nix index 6431e6a1a7a5..879666f2490a 100644 --- a/pkgs/development/libraries/tokyo-tyrant/default.nix +++ b/pkgs/development/libraries/tokyo-tyrant/default.nix @@ -11,31 +11,27 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ tokyocabinet ]; - doCheck = false; # FIXME + doCheck = false; # FIXME - meta = { + meta = with lib; { description = "Network interface of the Tokyo Cabinet DBM"; + longDescription = '' + Tokyo Tyrant is a package of network interface to the DBM called + Tokyo Cabinet. Though the DBM has high performance, you might + bother in case that multiple processes share the same database, or + remote processes access the database. Thus, Tokyo Tyrant is + provided for concurrent and remote connections to Tokyo Cabinet. It + is composed of the server process managing a database and its access + library for client applications. - longDescription = - '' Tokyo Tyrant is a package of network interface to the DBM called - Tokyo Cabinet. Though the DBM has high performance, you might - bother in case that multiple processes share the same database, or - remote processes access the database. Thus, Tokyo Tyrant is - provided for concurrent and remote connections to Tokyo Cabinet. It - is composed of the server process managing a database and its access - library for client applications. - - Tokyo Tyrant is written in the C language, and provided as API of C, - Perl, and Ruby. Tokyo Tyrant is available on platforms which have - API conforming to C99 and POSIX. Tokyo Tyrant is a free software - licensed under the GNU Lesser General Public License. - ''; - + Tokyo Tyrant is written in the C language, and provided as API of C, + Perl, and Ruby. Tokyo Tyrant is available on platforms which have + API conforming to C99 and POSIX. Tokyo Tyrant is a free software + licensed under the GNU Lesser General Public License. + ''; homepage = "https://fallabs.com/tokyotyrant/"; - - license = lib.licenses.lgpl21Plus; - - platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice - maintainers = [ ]; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ]; }; } From ea25bea65ac46d8ea61de35daa26d50ab8cc6718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:43:19 +0100 Subject: [PATCH 26/40] iaca: cleanup with lib --- pkgs/development/tools/iaca/3.0.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/iaca/3.0.nix b/pkgs/development/tools/iaca/3.0.nix index 731b64317172..b1bdbd6da86a 100644 --- a/pkgs/development/tools/iaca/3.0.nix +++ b/pkgs/development/tools/iaca/3.0.nix @@ -1,20 +1,24 @@ { lib, stdenv, requireFile, unzip }: -with lib; stdenv.mkDerivation { - name = "iaca-3.0"; + pname = "iaca"; + version = "3.0"; + src = requireFile { name = "iaca-version-v3.0-lin64.zip"; sha256 = "0qd81bxg269cwwvfmdp266kvhcl3sdvhrkfqdrbmanawk0w7lvp1"; url = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer-download"; }; + unpackCmd = ''${unzip}/bin/unzip "$src"''; + installPhase = '' mkdir -p $out/bin cp iaca $out/bin patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca ''; - meta = { + + meta = with lib; { description = "Intel Architecture Code Analyzer"; homepage = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer/"; license = licenses.unfree; From cd84d7fd5772fac04420870f489ab5e36420c5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Nov 2021 20:43:33 +0100 Subject: [PATCH 27/40] maloader: switch to fetchFromGitHub --- pkgs/os-specific/darwin/maloader/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/darwin/maloader/default.nix b/pkgs/os-specific/darwin/maloader/default.nix index 9142484e043c..d860ac38bce3 100644 --- a/pkgs/os-specific/darwin/maloader/default.nix +++ b/pkgs/os-specific/darwin/maloader/default.nix @@ -1,10 +1,12 @@ -{ lib, stdenv, fetchgit, opencflite, clang, libcxx }: +{ lib, stdenv, fetchFromGitHub, opencflite, clang, libcxx }: stdenv.mkDerivation { - name = "maloader-0git"; + pname = "maloader"; + version = "unstable-2014-02-25"; - src = fetchgit { - url = "git://github.com/shinh/maloader.git"; + src = fetchFromGitHub { + owner = "shinh"; + repo = "maloader"; rev = "5f220393e0b7b9ad0cf1aba0e89df2b42a1f0442"; sha256 = "0dd1pn07x1y8pyn5wz8qcl1c1xwghyya4d060m3y9vx5dhv9xmzw"; }; @@ -28,11 +30,12 @@ stdenv.mkDerivation { done ''; - meta = { + meta = with lib; { description = "Mach-O loader for Linux"; homepage = "https://github.com/shinh/maloader"; - license = lib.licenses.bsd2; - platforms = lib.platforms.linux; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ ]; broken = true; # 2018-09-08, no succesful build since 2017-08-21 }; } From c8bc708b3c6f3c525d6ca98631c7673461bc80cb Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 12 Nov 2021 12:31:14 +1100 Subject: [PATCH 28/40] pueue: 1.0.3 -> 1.0.4 --- pkgs/applications/misc/pueue/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/pueue/default.nix b/pkgs/applications/misc/pueue/default.nix index ac79f5be8460..4771666cc20a 100644 --- a/pkgs/applications/misc/pueue/default.nix +++ b/pkgs/applications/misc/pueue/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "pueue"; - version = "1.0.3"; + version = "1.0.4"; src = fetchFromGitHub { owner = "Nukesor"; repo = pname; rev = "v${version}"; - sha256 = "sha256-1iAXLs3O7EV7LfbXnajlDm75tQtanFInfNWZmnittlk="; + sha256 = "sha256-tNTKX++LrWwuVGdmAjvBStNYp4p1ai12JwJmozo1GV0="; }; - cargoSha256 = "sha256-x/qRNxZS++DBq5B9+/9eXN95QZN/FSLi+3XyJ06Y1hg="; + cargoSha256 = "sha256-t1d8K0v7kHPjH78lYCRCa4pyPCvyQT1kaQtVpoROZIE="; nativeBuildInputs = [ installShellFiles ]; From a5c670a45fe6c66da6a1c4779dc8312a61ad01ad Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sat, 13 Nov 2021 12:21:20 +0100 Subject: [PATCH 29/40] mu: 1.6.9 -> 1.6.10 --- pkgs/tools/networking/mu/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/mu/default.nix b/pkgs/tools/networking/mu/default.nix index b94cc498fa09..47d0dffda007 100644 --- a/pkgs/tools/networking/mu/default.nix +++ b/pkgs/tools/networking/mu/default.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "mu"; - version = "1.6.9"; + version = "1.6.10"; src = fetchFromGitHub { owner = "djcb"; repo = "mu"; rev = version; - sha256 = "RoSj283fcllEbirZOScKRU4BKLoxgatDdL1qYZu+LEI="; + sha256 = "1uJB8QdR0JgWlogb1cdUicz+LLtYQpAvYJjwcRjXt+E="; }; postPatch = lib.optionalString (batchSize != null) '' From 551c849344b90f605ad61e193337582e16116fdb Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 5 Nov 2021 21:54:48 +0100 Subject: [PATCH 30/40] ocamlPackages.elpi: use recent version of ppxlib --- pkgs/development/ocaml-modules/elpi/default.nix | 10 ++++++++-- pkgs/top-level/ocaml-packages.nix | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/elpi/default.nix b/pkgs/development/ocaml-modules/elpi/default.nix index f04c3b1fe253..4412f568508c 100644 --- a/pkgs/development/ocaml-modules/elpi/default.nix +++ b/pkgs/development/ocaml-modules/elpi/default.nix @@ -1,5 +1,7 @@ { stdenv, lib, fetchzip, buildDunePackage, camlp5 -, ppxlib, ppx_deriving, re, perl, ncurses +, re, perl, ncurses +, ppxlib, ppx_deriving +, ppxlib_0_15, ppx_deriving_0_15 , version ? "1.13.7" }: with lib; @@ -23,7 +25,11 @@ buildDunePackage rec { buildInputs = [ perl ncurses ]; - propagatedBuildInputs = [ camlp5 ppxlib ppx_deriving re ]; + propagatedBuildInputs = [ camlp5 re ] + ++ (if lib.versionAtLeast version "1.13" + then [ ppxlib ppx_deriving ] + else [ ppxlib_0_15 ppx_deriving_0_15 ] + ); meta = { description = "Embeddable λProlog Interpreter"; diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 8a4408260042..74691f1df2d2 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -344,8 +344,8 @@ let then ppxlib.override { version = "0.15.0"; } else ppxlib; in { - ppx_deriving = ppx_deriving.override { ppxlib = ppxlib_0_15; }; - ppxlib = ppxlib_0_15; + ppx_deriving_0_15 = ppx_deriving.override { ppxlib = ppxlib_0_15; }; + inherit ppxlib_0_15; } ); From 3e84e0fd7da610668bde7a5f9a548d9f02ee2ac8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 31 Oct 2021 08:11:39 +0100 Subject: [PATCH 31/40] coqPackages.graph-theory: enable for Coq 8.14 --- pkgs/development/coq-modules/graph-theory/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/coq-modules/graph-theory/default.nix b/pkgs/development/coq-modules/graph-theory/default.nix index 1ecda185cdd8..5607d342a2eb 100644 --- a/pkgs/development/coq-modules/graph-theory/default.nix +++ b/pkgs/development/coq-modules/graph-theory/default.nix @@ -12,7 +12,7 @@ mkCoqDerivation { inherit version; defaultVersion = with versions; switch coq.coq-version [ - { case = isEq "8.13"; out = "0.9"; } + { case = isGe "8.13"; out = "0.9"; } ] null; propagatedBuildInputs = [ mathcomp-algebra mathcomp-finmap hierarchy-builder ]; From 802bd2b7e3c2efc7bbb3fecf94fea9bffa3b1790 Mon Sep 17 00:00:00 2001 From: Sandro Date: Sat, 13 Nov 2021 13:21:27 +0100 Subject: [PATCH 32/40] Revert "follow up to pname+version switch: libs" --- pkgs/development/libraries/fftw/default.nix | 48 +++++++++++-------- pkgs/development/libraries/stfl/default.nix | 14 +++--- .../libraries/telepathy/qt/default.nix | 16 +++---- .../libraries/tokyo-tyrant/default.nix | 40 +++++++++------- pkgs/development/tools/iaca/3.0.nix | 10 ++-- pkgs/os-specific/darwin/maloader/default.nix | 17 +++---- 6 files changed, 75 insertions(+), 70 deletions(-) diff --git a/pkgs/development/libraries/fftw/default.nix b/pkgs/development/libraries/fftw/default.nix index 7f4188208ff6..37a7f1ce8fe4 100644 --- a/pkgs/development/libraries/fftw/default.nix +++ b/pkgs/development/libraries/fftw/default.nix @@ -3,7 +3,7 @@ , lib , gfortran , perl -, llvmPackages +, llvmPackages ? null , precision ? "double" , enableAvx ? stdenv.hostPlatform.avxSupport , enableAvx2 ? stdenv.hostPlatform.avx2Support @@ -11,50 +11,56 @@ , enableFma ? stdenv.hostPlatform.fmaSupport , enableMpi ? false , mpi -, withDoc ? stdenv.cc.isGNU }: +with lib; -assert lib.elem precision [ "single" "double" "long-double" "quad-precision" ]; +assert stdenv.cc.isClang -> llvmPackages != null; +assert elem precision [ "single" "double" "long-double" "quad-precision" ]; -stdenv.mkDerivation rec { - pname = "fftw-${precision}"; +let version = "3.3.9"; + withDoc = stdenv.cc.isGNU; +in + +stdenv.mkDerivation { + name = "fftw-${precision}-${version}"; src = fetchurl { urls = [ - "https://fftw.org/fftw-${version}.tar.gz" + "http://fftw.org/fftw-${version}.tar.gz" "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz" ]; sha256 = "sha256-vyx85AsEroEa9xTetRJRDMLBe5q51t3PSf5Eh+6nrz0="; }; outputs = [ "out" "dev" "man" ] - ++ lib.optional withDoc "info"; # it's dev-doc only + ++ optional withDoc "info"; # it's dev-doc only outputBin = "dev"; # fftw-wisdom nativeBuildInputs = [ gfortran ]; - buildInputs = lib.optionals stdenv.cc.isClang [ + buildInputs = optionals stdenv.cc.isClang [ # TODO: This may mismatch the LLVM version sin the stdenv, see #79818. llvmPackages.openmp - ] ++ lib.optional enableMpi mpi; + ] ++ optional enableMpi mpi; - configureFlags = [ - "--enable-shared" - "--enable-threads" - "--enable-openmp" - ] ++ lib.optional (precision != "double") "--enable-${precision}" + configureFlags = + [ "--enable-shared" + "--enable-threads" + ] + ++ optional (precision != "double") "--enable-${precision}" # all x86_64 have sse2 # however, not all float sizes fit - ++ lib.optional (stdenv.isx86_64 && (precision == "single" || precision == "double") ) "--enable-sse2" - ++ lib.optional enableAvx "--enable-avx" - ++ lib.optional enableAvx2 "--enable-avx2" - ++ lib.optional enableAvx512 "--enable-avx512" - ++ lib.optional enableFma "--enable-fma" - ++ lib.optional enableMpi "--enable-mpi" + ++ optional (stdenv.isx86_64 && (precision == "single" || precision == "double") ) "--enable-sse2" + ++ optional enableAvx "--enable-avx" + ++ optional enableAvx2 "--enable-avx2" + ++ optional enableAvx512 "--enable-avx512" + ++ optional enableFma "--enable-fma" + ++ [ "--enable-openmp" ] + ++ optional enableMpi "--enable-mpi" # doc generation causes Fortran wrapper generation which hard-codes gcc - ++ lib.optional (!withDoc) "--disable-doc"; + ++ optional (!withDoc) "--disable-doc"; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/stfl/default.nix b/pkgs/development/libraries/stfl/default.nix index 56b97235b0c1..20676c16b9c6 100644 --- a/pkgs/development/libraries/stfl/default.nix +++ b/pkgs/development/libraries/stfl/default.nix @@ -10,11 +10,13 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses libiconv ]; - preBuild = '' + buildPhase = '' sed -i s/gcc/cc/g Makefile sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h - '' + lib.optionalString stdenv.isDarwin '' + '' + ( lib.optionalString stdenv.isDarwin '' sed -i s/-soname/-install_name/ Makefile + '' ) + '' + make ''; installPhase = '' @@ -24,11 +26,11 @@ stdenv.mkDerivation rec { ln -s $out/lib/libstfl.so.0.24 $out/lib/libstfl.so.0 ''; - meta = with lib; { + meta = { homepage = "http://www.clifford.at/stfl/"; description = "A library which implements a curses-based widget set for text terminals"; - maintainers = with maintainers; [ lovek323 ]; - license = licenses.lgpl3; - platforms = platforms.unix; + maintainers = with lib.maintainers; [ lovek323 ]; + license = lib.licenses.lgpl3; + platforms = lib.platforms.unix; }; } diff --git a/pkgs/development/libraries/telepathy/qt/default.nix b/pkgs/development/libraries/telepathy/qt/default.nix index f11759b01f54..dbbaca7e11a7 100644 --- a/pkgs/development/libraries/telepathy/qt/default.nix +++ b/pkgs/development/libraries/telepathy/qt/default.nix @@ -1,19 +1,20 @@ -{ lib, stdenv, fetchurl, cmake, qtbase, pkg-config, python3, dbus-glib, dbus +{ lib, stdenv, fetchurl, cmake, qtbase, pkg-config, python3Packages, dbus-glib, dbus , telepathy-farstream, telepathy-glib }: -stdenv.mkDerivation rec { - pname = "telepathy-qt"; - version = "0.9.8"; +let + inherit (python3Packages) python dbus-python; +in stdenv.mkDerivation rec { + name = "telepathy-qt-0.9.8"; src = fetchurl { - url = "https://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-${version}.tar.gz"; + url = "https://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; sha256 = "bf8e2a09060addb80475a4938105b9b41d9e6837999b7a00e5351783857e18ad"; }; - nativeBuildInputs = [ cmake pkg-config python3 ]; + nativeBuildInputs = [ cmake pkg-config python ]; propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ]; buildInputs = [ dbus-glib ]; - checkInputs = [ dbus.daemon python3.pkgs.dbus-python ]; + checkInputs = [ dbus.daemon dbus-python ]; # No point in building tests if they are not run # On 0.9.7, they do not even build with QT4 @@ -28,6 +29,5 @@ stdenv.mkDerivation rec { homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/"; license = licenses.lgpl21; platforms = platforms.linux; - maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/libraries/tokyo-tyrant/default.nix b/pkgs/development/libraries/tokyo-tyrant/default.nix index 879666f2490a..6431e6a1a7a5 100644 --- a/pkgs/development/libraries/tokyo-tyrant/default.nix +++ b/pkgs/development/libraries/tokyo-tyrant/default.nix @@ -11,27 +11,31 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ tokyocabinet ]; - doCheck = false; # FIXME + doCheck = false; # FIXME - meta = with lib; { + meta = { description = "Network interface of the Tokyo Cabinet DBM"; - longDescription = '' - Tokyo Tyrant is a package of network interface to the DBM called - Tokyo Cabinet. Though the DBM has high performance, you might - bother in case that multiple processes share the same database, or - remote processes access the database. Thus, Tokyo Tyrant is - provided for concurrent and remote connections to Tokyo Cabinet. It - is composed of the server process managing a database and its access - library for client applications. - Tokyo Tyrant is written in the C language, and provided as API of C, - Perl, and Ruby. Tokyo Tyrant is available on platforms which have - API conforming to C99 and POSIX. Tokyo Tyrant is a free software - licensed under the GNU Lesser General Public License. - ''; + longDescription = + '' Tokyo Tyrant is a package of network interface to the DBM called + Tokyo Cabinet. Though the DBM has high performance, you might + bother in case that multiple processes share the same database, or + remote processes access the database. Thus, Tokyo Tyrant is + provided for concurrent and remote connections to Tokyo Cabinet. It + is composed of the server process managing a database and its access + library for client applications. + + Tokyo Tyrant is written in the C language, and provided as API of C, + Perl, and Ruby. Tokyo Tyrant is available on platforms which have + API conforming to C99 and POSIX. Tokyo Tyrant is a free software + licensed under the GNU Lesser General Public License. + ''; + homepage = "https://fallabs.com/tokyotyrant/"; - license = licenses.lgpl21Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ ]; + + license = lib.licenses.lgpl21Plus; + + platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice + maintainers = [ ]; }; } diff --git a/pkgs/development/tools/iaca/3.0.nix b/pkgs/development/tools/iaca/3.0.nix index b1bdbd6da86a..731b64317172 100644 --- a/pkgs/development/tools/iaca/3.0.nix +++ b/pkgs/development/tools/iaca/3.0.nix @@ -1,24 +1,20 @@ { lib, stdenv, requireFile, unzip }: +with lib; stdenv.mkDerivation { - pname = "iaca"; - version = "3.0"; - + name = "iaca-3.0"; src = requireFile { name = "iaca-version-v3.0-lin64.zip"; sha256 = "0qd81bxg269cwwvfmdp266kvhcl3sdvhrkfqdrbmanawk0w7lvp1"; url = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer-download"; }; - unpackCmd = ''${unzip}/bin/unzip "$src"''; - installPhase = '' mkdir -p $out/bin cp iaca $out/bin patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca ''; - - meta = with lib; { + meta = { description = "Intel Architecture Code Analyzer"; homepage = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer/"; license = licenses.unfree; diff --git a/pkgs/os-specific/darwin/maloader/default.nix b/pkgs/os-specific/darwin/maloader/default.nix index d860ac38bce3..9142484e043c 100644 --- a/pkgs/os-specific/darwin/maloader/default.nix +++ b/pkgs/os-specific/darwin/maloader/default.nix @@ -1,12 +1,10 @@ -{ lib, stdenv, fetchFromGitHub, opencflite, clang, libcxx }: +{ lib, stdenv, fetchgit, opencflite, clang, libcxx }: stdenv.mkDerivation { - pname = "maloader"; - version = "unstable-2014-02-25"; + name = "maloader-0git"; - src = fetchFromGitHub { - owner = "shinh"; - repo = "maloader"; + src = fetchgit { + url = "git://github.com/shinh/maloader.git"; rev = "5f220393e0b7b9ad0cf1aba0e89df2b42a1f0442"; sha256 = "0dd1pn07x1y8pyn5wz8qcl1c1xwghyya4d060m3y9vx5dhv9xmzw"; }; @@ -30,12 +28,11 @@ stdenv.mkDerivation { done ''; - meta = with lib; { + meta = { description = "Mach-O loader for Linux"; homepage = "https://github.com/shinh/maloader"; - license = licenses.bsd2; - platforms = platforms.linux; - maintainers = with maintainers; [ ]; + license = lib.licenses.bsd2; + platforms = lib.platforms.linux; broken = true; # 2018-09-08, no succesful build since 2017-08-21 }; } From f3784bc57c4abc035ad7c0a2c08c648926eec27c Mon Sep 17 00:00:00 2001 From: Han Verstraete Date: Mon, 8 Nov 2021 15:46:29 +0100 Subject: [PATCH 33/40] faas-cli: 0.13.13 -> 0.13.15 --- pkgs/development/tools/faas-cli/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/faas-cli/default.nix b/pkgs/development/tools/faas-cli/default.nix index d74e9b35a2b6..425d79219c8d 100644 --- a/pkgs/development/tools/faas-cli/default.nix +++ b/pkgs/development/tools/faas-cli/default.nix @@ -4,20 +4,20 @@ let let cpuName = platform.parsed.cpu.name; in { "aarch64" = "arm64"; "armv7l" = "armhf"; + "armv6l" = "armhf"; }.${cpuName} or cpuName; in buildGoModule rec { pname = "faas-cli"; # When updating version change rev. - version = "0.13.13"; - rev = "72816d486cf76c3089b915dfb0b66b85cf096634"; - platform = faasPlatform stdenv.targetPlatform; + version = "0.13.15"; + rev = "b562392b12a78a11bcff9c6fca5a47146ea2ba0a"; src = fetchFromGitHub { owner = "openfaas"; repo = "faas-cli"; rev = version; - sha256 = "0mmrakyy2qmkldld7pxf5bx6whdadq2r52b68f9p9z7yqrdimix8"; + sha256 = "15kjxn0p8nz8147vsm9q5q6wr2w5ssybvn247kynj2n7139iva2f"; }; CGO_ENABLED = 0; @@ -30,7 +30,7 @@ buildGoModule rec { "-s" "-w" "-X github.com/openfaas/faas-cli/version.GitCommit=${rev}" "-X github.com/openfaas/faas-cli/version.Version=${version}" - "-X github.com/openfaas/faas-cli/commands.Platform=${platform}" + "-X github.com/openfaas/faas-cli/commands.Platform=${faasPlatform stdenv.targetPlatform}" ]; meta = with lib; { @@ -38,5 +38,13 @@ buildGoModule rec { description = "Official CLI for OpenFaaS "; license = licenses.mit; maintainers = with maintainers; [ welteki ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + "aarch64-linux" + "aarch64-darwin" + "armv7l-linux" + "armv6l-linux" + ]; }; } From 001ac664326deb3adf6b432e0f85ded816f9263d Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 13 Nov 2021 14:31:18 +0000 Subject: [PATCH 34/40] python3Packages.fiona: skip some tests failing on aarch64 --- pkgs/development/python-modules/fiona/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/fiona/default.nix b/pkgs/development/python-modules/fiona/default.nix index 987a8ca6209e..0c1a3bd2c651 100644 --- a/pkgs/development/python-modules/fiona/default.nix +++ b/pkgs/development/python-modules/fiona/default.nix @@ -51,6 +51,12 @@ buildPythonPackage rec { "http" "https" "wheel" # Assert not true "test_no_append_driver_cannot_append" + ] ++ lib.optionals stdenv.isAarch64 [ + # https://github.com/Toblerity/Fiona/issues/1012 the existence of this + # as a bug hasn't been challenged and other distributors seem to also + # be skipping these tests on aarch64, so this is not unique to nixpkgs. + "test_write_or_driver_error" + "test_append_or_driver_error" ]; meta = with lib; { From e7200f58102c685862fc5f057c6b38da4e96243c Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 13 Nov 2021 10:55:13 -0500 Subject: [PATCH 35/40] glitter: 1.5.2 -> 1.5.3 --- .../version-management/git-and-tools/glitter/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/glitter/default.nix b/pkgs/applications/version-management/git-and-tools/glitter/default.nix index d9c156a9b2a3..4b1b4c2f0b4a 100644 --- a/pkgs/applications/version-management/git-and-tools/glitter/default.nix +++ b/pkgs/applications/version-management/git-and-tools/glitter/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "glitter"; - version = "1.5.2"; + version = "1.5.3"; src = fetchFromGitHub { owner = "milo123459"; repo = pname; rev = "v${version}"; - sha256 = "sha256-p+Oee0xUqd+vBjpjKI33wR21zBen29xu2gdmMCiH1zk="; + sha256 = "sha256-esrN6VH+ayc9DIhOLGR5oOaMjSBAc7u7fr8L1kSh4Gk="; }; - cargoSha256 = "sha256-qmlnmj7+w+RVYj7DKiwm0JowGNlyOsbAGBwfXgRcLHE="; + cargoSha256 = "sha256-0ugr9HcJLsV34kKJs1E+n10tdOv09wkaYmkIodLhyLk="; # tests require it to be in a git repository preCheck = '' From 5aaa5f5e75b3795e8f40d18dce211f50cceb6693 Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 11 Nov 2021 13:39:35 -0500 Subject: [PATCH 36/40] pluginupdate.py: fix compatibility with nix 2.4 --- maintainers/scripts/pluginupdate.py | 2 +- .../editors/kakoune/plugins/update-shell.nix | 15 +++++++++++++++ .../editors/kakoune/plugins/update.py | 2 +- pkgs/misc/vim-plugins/update-shell.nix | 11 ++++++----- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/editors/kakoune/plugins/update-shell.nix diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py index 2a9a2d4c0a23..2c2cb3b6dd36 100644 --- a/maintainers/scripts/pluginupdate.py +++ b/maintainers/scripts/pluginupdate.py @@ -305,7 +305,7 @@ class CleanEnvironment(object): def get_current_plugins(editor: Editor) -> List[Plugin]: with CleanEnvironment(): - cmd = ["nix", "eval", "--json", editor.get_plugins] + cmd = ["nix", "eval", "--impure", "--json", "--expr", editor.get_plugins] log.debug("Running command %s", cmd) out = subprocess.check_output(cmd) data = json.loads(out) diff --git a/pkgs/applications/editors/kakoune/plugins/update-shell.nix b/pkgs/applications/editors/kakoune/plugins/update-shell.nix new file mode 100644 index 000000000000..ca83f09c7154 --- /dev/null +++ b/pkgs/applications/editors/kakoune/plugins/update-shell.nix @@ -0,0 +1,15 @@ +{ pkgs ? import ../../../../.. { } }: + +with pkgs; +let + pyEnv = python3.withPackages (ps: [ ps.GitPython ]); +in + +mkShell { + packages = [ + bash + pyEnv + nix + nix-prefetch-scripts + ]; +} diff --git a/pkgs/applications/editors/kakoune/plugins/update.py b/pkgs/applications/editors/kakoune/plugins/update.py index 40a28d9afe2c..9f5f64f9e5b3 100755 --- a/pkgs/applications/editors/kakoune/plugins/update.py +++ b/pkgs/applications/editors/kakoune/plugins/update.py @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -p nix-prefetch-git -p python3 -p python3Packages.GitPython nix -i python3 +#!nix-shell update-shell.nix -i python3 # format: # $ nix run nixpkgs.python3Packages.black -c black update.py diff --git a/pkgs/misc/vim-plugins/update-shell.nix b/pkgs/misc/vim-plugins/update-shell.nix index 18b5b1a37c5f..e1b727c49e04 100644 --- a/pkgs/misc/vim-plugins/update-shell.nix +++ b/pkgs/misc/vim-plugins/update-shell.nix @@ -1,14 +1,15 @@ -{ nixpkgs ? import ../../.. { } }: -with nixpkgs; +{ pkgs ? import ../../.. { } }: + +with pkgs; let - pyEnv = python3.withPackages(ps: [ ps.GitPython ]); + pyEnv = python3.withPackages (ps: [ ps.GitPython ]); in + mkShell { packages = [ bash pyEnv - nix_2_3 + nix nix-prefetch-scripts ]; } - From b127a6f81aae8052a621ca4f610bca6a151c985f Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Mon, 31 May 2021 14:37:42 +0200 Subject: [PATCH 37/40] gamenetworkingsockets: 1.2.0 -> 1.3.0 --- .../development/libraries/gamenetworkingsockets/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/gamenetworkingsockets/default.nix b/pkgs/development/libraries/gamenetworkingsockets/default.nix index 0546bfb8e08e..bb049013c3cb 100644 --- a/pkgs/development/libraries/gamenetworkingsockets/default.nix +++ b/pkgs/development/libraries/gamenetworkingsockets/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "GameNetworkingSockets"; - version = "1.2.0"; + version = "1.3.0"; src = fetchFromGitHub { owner = "ValveSoftware"; repo = pname; rev = "v${version}"; - sha256 = "1zghyc4liml8gzxflyh5gp6zi11ny6ng5hv9wyqvp32rfx221gc6"; + sha256 = "1d3k1ciw8c8rznxsr4bfmw0f0srblpflv8xqavhcxx2zwvaya78c"; }; nativeBuildInputs = [ cmake ninja go ]; @@ -21,8 +21,6 @@ stdenv.mkDerivation rec { buildInputs = [ protobuf openssl ]; meta = with lib; { - # build failure is resolved on master, remove at next release - broken = stdenv.isDarwin; description = "GameNetworkingSockets is a basic transport layer for games"; license = licenses.bsd3; platforms = platforms.unix; From 23805c77bc128f574b2500974bc61eab32ce71eb Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 17 Oct 2021 14:07:55 +0200 Subject: [PATCH 38/40] gamenetworkingsockets: propagate OpenSSL We need to propagate OpenSSL for using CMake's find_package. --- pkgs/development/libraries/gamenetworkingsockets/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gamenetworkingsockets/default.nix b/pkgs/development/libraries/gamenetworkingsockets/default.nix index bb049013c3cb..8fcb5b2230e0 100644 --- a/pkgs/development/libraries/gamenetworkingsockets/default.nix +++ b/pkgs/development/libraries/gamenetworkingsockets/default.nix @@ -18,7 +18,8 @@ stdenv.mkDerivation rec { # tmp home for go preBuild = "export HOME=\"$TMPDIR\""; - buildInputs = [ protobuf openssl ]; + buildInputs = [ protobuf ]; + propagatedBuildInputs = [ openssl ]; meta = with lib; { description = "GameNetworkingSockets is a basic transport layer for games"; From d37d84bdcae7d248e8fe638a0289d1bf216adbd2 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 17 Oct 2021 12:18:28 +0200 Subject: [PATCH 39/40] soldat-unstable: 2021-04-27 -> 2021-11-01 Now builds with GameNetworkingSockets 1.3.0. --- pkgs/games/soldat-unstable/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/games/soldat-unstable/default.nix b/pkgs/games/soldat-unstable/default.nix index 496d51e31c41..69fc90dff845 100644 --- a/pkgs/games/soldat-unstable/default.nix +++ b/pkgs/games/soldat-unstable/default.nix @@ -6,14 +6,14 @@ let base = stdenv.mkDerivation rec { pname = "soldat-base"; - version = "unstable-2020-11-26"; + version = "unstable-2021-09-05"; src = fetchFromGitHub { name = "base"; owner = "Soldat"; repo = "base"; - rev = "e5f9c35ec12562595b248a7a921dd3458b36b605"; - sha256 = "0qg0p2adb5v6di44iqczswldhypdqvn1nl96vxkfkxdg9i8x90w3"; + rev = "6c74d768d511663e026e015dde788006c74406b5"; + sha256 = "175gmkdccy8rnkd95h2zqldqfydyji1hfby8b1qbnl8wz4dh08mz"; }; nativeBuildInputs = [ zip ]; @@ -39,14 +39,14 @@ in stdenv.mkDerivation rec { pname = "soldat"; - version = "unstable-2021-04-27"; + version = "unstable-2021-11-01"; src = fetchFromGitHub { name = "soldat"; owner = "Soldat"; repo = "soldat"; - rev = "4d17667c316ff08934e97448b7f290a8dc434e81"; - sha256 = "1pf557psmhfaagblfwdn36cw80j7bgs0lgjq8hmjbv58dysw3jdb"; + rev = "7780d2948b724970af9f2aaf4fb4e4350d5438d9"; + sha256 = "0r39d1394q7kabsgq6vpdlzwsajxafsg23i0r273nggfvs3m805z"; }; nativeBuildInputs = [ fpc makeWrapper autoPatchelfHook ]; From 4e50d99934fe6cd137738763ce045f4916c5e9ab Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 17 Oct 2021 14:29:11 +0200 Subject: [PATCH 40/40] soldat-unstable: build using CMake This will be the build system going forward, so it seems sensible to support it right away. There's no neat way to use the system GameNetworkingSockets upstream yet, so we add a hack for now. Proactively decrease platforms to Linux only since the CMake doesn't quite use GNUInstallDirs on Darwin and Windows unfortunately. --- pkgs/games/soldat-unstable/default.nix | 58 ++++++------------- .../gamenetworkingsockets-no-external.patch | 14 +++++ 2 files changed, 33 insertions(+), 39 deletions(-) create mode 100644 pkgs/games/soldat-unstable/gamenetworkingsockets-no-external.patch diff --git a/pkgs/games/soldat-unstable/default.nix b/pkgs/games/soldat-unstable/default.nix index 69fc90dff845..b3ae3b58cfe7 100644 --- a/pkgs/games/soldat-unstable/default.nix +++ b/pkgs/games/soldat-unstable/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchFromGitHub, fpc, zip, makeWrapper , SDL2, freetype, physfs, openal, gamenetworkingsockets -, xorg, autoPatchelfHook +, xorg, autoPatchelfHook, cmake }: let @@ -49,45 +49,27 @@ stdenv.mkDerivation rec { sha256 = "0r39d1394q7kabsgq6vpdlzwsajxafsg23i0r273nggfvs3m805z"; }; - nativeBuildInputs = [ fpc makeWrapper autoPatchelfHook ]; + patches = [ + # Don't build GameNetworkingSockets as an ExternalProject, + # see https://github.com/Soldat/soldat/issues/73 + ./gamenetworkingsockets-no-external.patch + ]; + + nativeBuildInputs = [ fpc makeWrapper autoPatchelfHook cmake ]; + + cmakeFlags = [ + "-DADD_ASSETS=OFF" # We provide base's smods via nix + ]; buildInputs = [ SDL2 freetype physfs openal gamenetworkingsockets ]; + # TODO(@sternenseemann): set proper rpath via cmake, so we don't need autoPatchelfHook runtimeDependencies = [ xorg.libX11 ]; - buildPhase = '' - runHook preBuild - - mkdir -p client/build server/build - - # build .so from stb headers - pushd client/libs/stb - make - popd - - # build client - pushd client - make mode=release - popd - - # build server - pushd server - make mode=release - popd - - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - - install -Dm644 client/libs/stb/libstb.so -t $out/lib - install -Dm755 client/build/soldat_* $out/bin/soldat - install -Dm755 server/build/soldatserver_* $out/bin/soldatserver - - # make sure soldat{,server} find their game archive, - # let them write their state and configuration files - # to $XDG_CONFIG_HOME/soldat/soldat{,server} unless - # the user specifies otherwise. + # make sure soldat{,server} find their game archive, + # let them write their state and configuration files + # to $XDG_CONFIG_HOME/soldat/soldat{,server} unless + # the user specifies otherwise. + postInstall = '' for p in $out/bin/soldatserver $out/bin/soldat; do configDir="\''${XDG_CONFIG_HOME:-\$HOME/.config}/soldat/$(basename "$p")" @@ -97,8 +79,6 @@ stdenv.mkDerivation rec { --add-flags "-fs_userpath \"$configDir\"" \ --add-flags "-fs_basepath \"${base}/share/soldat\"" done - - runHook postInstall ''; meta = with lib; { @@ -106,7 +86,7 @@ stdenv.mkDerivation rec { license = [ licenses.mit base.meta.license ]; inherit (src.meta) homepage; maintainers = [ maintainers.sternenseemann ]; - platforms = platforms.x86_64 ++ platforms.i686; + platforms = [ "x86_64-linux" "i686-linux" ]; # portability currently mainly limited by fpc # in nixpkgs which doesn't work on darwin, # aarch64 and arm support should be possible: diff --git a/pkgs/games/soldat-unstable/gamenetworkingsockets-no-external.patch b/pkgs/games/soldat-unstable/gamenetworkingsockets-no-external.patch new file mode 100644 index 000000000000..629ca6c67518 --- /dev/null +++ b/pkgs/games/soldat-unstable/gamenetworkingsockets-no-external.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1084048..1ea4c84 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -143,7 +143,8 @@ if(BUILD_CLIENT OR BUILD_SERVER) + file(WRITE ${PROJECT_BINARY_DIR}/bin/steam_appid.txt "638490") + else() + # GameNetworkingSockets +- add_subdirectory(shared/libs/GameNetworkingSockets) ++ # add_subdirectory(shared/libs/GameNetworkingSockets) ++ find_package(GameNetworkingSockets REQUIRED) + endif() + endif() +