From 636aa8dc98a8c81a5263533b9b7afb8d146924cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 11 Nov 2023 23:04:22 +0100 Subject: [PATCH 001/121] prosody: point prosodyctl by default to correct directories --- pkgs/servers/xmpp/prosody/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index 513cd5f1574b..4f4e349fe09c 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -64,6 +64,12 @@ stdenv.mkDerivation rec { make -C tools/migration ''; + buildFlags = [ + # don't search for configs in the nix store when running prosodyctl + "INSTALLEDCONFIG=/etc/prosody" + "INSTALLEDDATA=/var/lib/prosody" + ]; + # the wrapping should go away once lua hook is fixed postInstall = '' ${concatMapStringsSep "\n" (module: '' From 59530dbdbce1133173e8e1c18bec7b9572629dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 31 Oct 2023 03:02:56 +0100 Subject: [PATCH 002/121] prosody: don't wrap prosodyctl This overwrites the PROSODY_CONFIG and breaks other --config args --- pkgs/servers/xmpp/prosody/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index 4f4e349fe09c..c9e606c5128b 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -75,8 +75,6 @@ stdenv.mkDerivation rec { ${concatMapStringsSep "\n" (module: '' cp -r $communityModules/mod_${module} $out/lib/prosody/modules/ '') (lib.lists.unique(nixosModuleDeps ++ withCommunityModules ++ withOnlyInstalledCommunityModules))} - wrapProgram $out/bin/prosodyctl \ - --add-flags '--config "/etc/prosody/prosody.cfg.lua"' make -C tools/migration install ''; From 2ed51a3ff0a69a6d2e6359a2bcf5da70f7313789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Thu, 9 May 2024 19:11:20 +0200 Subject: [PATCH 003/121] deterministic-uname: Overridable platform Some packages rely on `uname` to configure the host target which breaks cross-compilation. We can have more control over the evaluation of `uname` by placing `deterministic-uname` into the package's `nativeBuildInputs`. However the current `deterministic-uname` is hardcoded to `buildPlatform`. This PR introduces a build argument `forPlatform` to `deterministic-uname` which allows you to override the platform it reports. Example: ```nix deterministic-uname.override { forPlatform = stdenv.hostPlatform; } ``` --- .../deterministic-uname/default.nix | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/build-support/deterministic-uname/default.nix b/pkgs/build-support/deterministic-uname/default.nix index 6d150557aa9d..9d07a4b6c4e2 100644 --- a/pkgs/build-support/deterministic-uname/default.nix +++ b/pkgs/build-support/deterministic-uname/default.nix @@ -5,6 +5,7 @@ , coreutils , getopt , modDirVersion ? "" +, forPlatform ? stdenv.buildPlatform }: substituteAll { @@ -17,8 +18,8 @@ substituteAll { inherit coreutils getopt; - uSystem = if stdenv.buildPlatform.uname.system != null then stdenv.buildPlatform.uname.system else "unknown"; - inherit (stdenv.buildPlatform.uname) processor; + uSystem = if forPlatform.uname.system != null then forPlatform.uname.system else "unknown"; + inherit (forPlatform.uname) processor; # uname -o # maybe add to lib/systems/default.nix uname attrset @@ -26,9 +27,9 @@ substituteAll { # https://stackoverflow.com/questions/61711186/where-does-host-operating-system-in-uname-c-comes-from # https://github.com/coreutils/gnulib/blob/master/m4/host-os.m4 operatingSystem = - if stdenv.buildPlatform.isLinux + if forPlatform.isLinux then "GNU/Linux" - else if stdenv.buildPlatform.isDarwin + else if forPlatform.isDarwin then "Darwin" # darwin isn't in host-os.m4 so where does this come from? else "unknown"; @@ -42,11 +43,12 @@ substituteAll { mainProgram = "uname"; longDescription = '' This package provides a replacement for `uname` whose output depends only - on `stdenv.buildPlatform`. It is meant to be used from within derivations. - Many packages' build processes run `uname` at compile time and embed its - output into the result of the build. Since `uname` calls into the kernel, - and the Nix sandbox currently does not intercept these calls, builds made - on different kernels will produce different results. + on `stdenv.buildPlatform`, or a configurable `forPlatform`. It is meant + to be used from within derivations. Many packages' build processes run + `uname` at compile time and embed its output into the result of the build. + Since `uname` calls into the kernel, and the Nix sandbox currently does + not intercept these calls, builds made on different kernels will produce + different results. ''; license = [ licenses.mit ]; maintainers = with maintainers; [ artturin ]; From b0e8337c3aed748de1383aba68df971ed3ff0962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Sun, 26 May 2024 10:11:39 +0200 Subject: [PATCH 004/121] deterministic-host-uname: init --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f74494aff99..88352269603b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3692,6 +3692,8 @@ with pkgs; deterministic-uname = callPackage ../build-support/deterministic-uname { }; + deterministic-host-uname = deterministic-uname.override { forPlatform = stdenv.hostPlatform; }; + dfmt = callPackage ../tools/text/dfmt { }; diopser = callPackage ../applications/audio/diopser { }; From 1d5db3589963d8a13c33a2c7a8c90ffee7881d9c Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Fri, 31 May 2024 14:03:51 +0200 Subject: [PATCH 005/121] hid-t150: init at 0.8a --- pkgs/os-specific/linux/hid-t150/default.nix | 40 +++++++++++++++++++++ pkgs/top-level/linux-kernels.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/os-specific/linux/hid-t150/default.nix diff --git a/pkgs/os-specific/linux/hid-t150/default.nix b/pkgs/os-specific/linux/hid-t150/default.nix new file mode 100644 index 000000000000..27237bafbb01 --- /dev/null +++ b/pkgs/os-specific/linux/hid-t150/default.nix @@ -0,0 +1,40 @@ +{ + stdenv, + lib, + fetchFromGitHub, + kernel, +}: + +stdenv.mkDerivation { + pname = "hid-t150"; + #https://github.com/scarburato/t150_driver/blob/165d0601e11576186c9416c40144927549ef804d/install.sh#L3 + version = "0.8a"; + + src = fetchFromGitHub { + owner = "scarburato"; + repo = "t150_driver"; + rev = "580b79b7b479076ba470fcc21fbd8484f5328546"; + hash = "sha256-6xqm8500+yMXA/WonMv1JAOS/oIeSNDp9HFuYkEd03U="; + }; + + nativeBuildInputs = kernel.moduleBuildDependencies; + + sourceRoot = "source/hid-t150"; + + makeFlags = kernel.makeFlags ++ [ + "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" + "INSTALL_MOD_PATH=${placeholder "out"}" + ]; + + installPhase = '' + make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build M=$(pwd) modules_install $makeFlags + ''; + + meta = with lib; { + description = "A linux kernel driver for Thrustmaster T150 and TMX Force Feedback wheel"; + homepage = "https://github.com/scarburato/t150_driver"; + license = licenses.gpl2; + maintainers = [ maintainers.dbalan ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix index 24eadff372f1..f56e7a25ce21 100644 --- a/pkgs/top-level/linux-kernels.nix +++ b/pkgs/top-level/linux-kernels.nix @@ -589,6 +589,8 @@ in { hid-ite8291r3 = callPackage ../os-specific/linux/hid-ite8291r3 { }; + hid-t150 = callPackage ../os-specific/linux/hid-t150 { }; + hid-tmff2 = callPackage ../os-specific/linux/hid-tmff2 { }; drbd = callPackage ../os-specific/linux/drbd/driver.nix { }; From c4b46f7c5445bbfd6a6a1f99fa73fd9d6a0da373 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 30 May 2024 21:54:47 +0200 Subject: [PATCH 006/121] python312Packages.crossandra: init at 2.2.1 --- .../python-modules/crossandra/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/crossandra/default.nix diff --git a/pkgs/development/python-modules/crossandra/default.nix b/pkgs/development/python-modules/crossandra/default.nix new file mode 100644 index 000000000000..f9e2967ff40c --- /dev/null +++ b/pkgs/development/python-modules/crossandra/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + result, + mypy +}: + +buildPythonPackage rec { + pname = "crossandra"; + version = "2.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "trag1c"; + repo = "crossandra"; + rev = "refs/tags/${version}"; + hash = "sha256-/JhrjXRH7Rs2bUil9HRneBC9wlVYEyfwivjzb+eyRv8="; + }; + + build-system = [ setuptools mypy ]; + dependencies = [ result ]; + + pythonImportsCheck = [ "crossandra" ]; + prePatch = '' + # pythonRelaxDepsHook did not work + substituteInPlace pyproject.toml \ + --replace-fail "result ~= 0.9.0" "result >= 0.9.0" + ''; + + meta = with lib; { + changelog = "https://github.com/trag1c/crossandra/blob/${src.rev}/CHANGELOG.md"; + description = "A fast and simple enum/regex-based tokenizer with decent configurability"; + license = licenses.mit; + homepage = "https://trag1c.github.io/crossandra"; + maintainers = with maintainers; [ sigmanificient ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16b8ff5cb46d..d23e62a3ff24 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2567,6 +2567,8 @@ self: super: with self; { crontab = callPackage ../development/python-modules/crontab { }; + crossandra = callPackage ../development/python-modules/crossandra { }; + crossplane = callPackage ../development/python-modules/crossplane { }; crownstone-cloud = callPackage ../development/python-modules/crownstone-cloud { }; From e8f703ab9bfa90dd0e16b246463f103579c00aab Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 2 Jun 2024 21:11:33 +0300 Subject: [PATCH 007/121] libratbag: fix `ratbagctl` typelib error `ImportError: cannot import name Gio, introspection typelib not found` --- pkgs/os-specific/linux/libratbag/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/libratbag/default.nix b/pkgs/os-specific/linux/libratbag/default.nix index a35ab1dcc01c..3a13c53cf586 100644 --- a/pkgs/os-specific/linux/libratbag/default.nix +++ b/pkgs/os-specific/linux/libratbag/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wrapGAppsNoGuiHook, gobject-introspection , glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3 , json-glib, libunistring }: @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - meson ninja pkg-config gitMinimal swig check valgrind + meson ninja pkg-config gitMinimal swig check valgrind wrapGAppsNoGuiHook gobject-introspection ]; buildInputs = [ From 43cdb75ca3f0bac2ce1485c9936cb13e193efd01 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 2 Jun 2024 21:22:54 +0300 Subject: [PATCH 008/121] openrazer-daemon: Fix typelib error `ImportError: cannot import name GLib, introspection typelib not found` --- pkgs/development/python-modules/openrazer/daemon.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix index 6fafcec4a38b..05f7ee5ed48d 100644 --- a/pkgs/development/python-modules/openrazer/daemon.nix +++ b/pkgs/development/python-modules/openrazer/daemon.nix @@ -12,6 +12,7 @@ setuptools, wrapGAppsNoGuiHook, notify2, + glib }: let @@ -34,6 +35,10 @@ buildPythonPackage (common // { nativeBuildInputs = [ setuptools wrapGAppsNoGuiHook ]; + buildInputs = [ + glib + ]; + propagatedBuildInputs = [ daemonize dbus-python From 0e87e55595031aad7369a8f21086a0b5ad168588 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 2 Jun 2024 21:28:39 +0300 Subject: [PATCH 009/121] openrazer-daemon: move deps to correct attributes --- pkgs/development/python-modules/openrazer/daemon.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix index 05f7ee5ed48d..e2fd6cae9e71 100644 --- a/pkgs/development/python-modules/openrazer/daemon.nix +++ b/pkgs/development/python-modules/openrazer/daemon.nix @@ -33,17 +33,16 @@ buildPythonPackage (common // { --replace-fail "plugdev" "openrazer" ''; - nativeBuildInputs = [ setuptools wrapGAppsNoGuiHook ]; + nativeBuildInputs = [ setuptools wrapGAppsNoGuiHook gobject-introspection ]; buildInputs = [ glib + gtk3 ]; propagatedBuildInputs = [ daemonize dbus-python - gobject-introspection - gtk3 pygobject3 pyudev setproctitle From b75575e178906486edb72c05ad0e65c45ca7a215 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 2 Jun 2024 21:46:20 +0300 Subject: [PATCH 010/121] whipper: Fix typelib error `ImportError: cannot import name GLib, introspection typelib not found` --- pkgs/applications/audio/whipper/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/whipper/default.nix b/pkgs/applications/audio/whipper/default.nix index 53d7262d78df..3af08cce73d0 100644 --- a/pkgs/applications/audio/whipper/default.nix +++ b/pkgs/applications/audio/whipper/default.nix @@ -3,9 +3,12 @@ , fetchFromGitHub , fetchpatch , installShellFiles +, wrapGAppsNoGuiHook +, gobject-introspection , libcdio-paranoia , cdrdao , libsndfile +, glib , flac , sox , util-linux @@ -37,6 +40,8 @@ in python3.pkgs.buildPythonApplication rec { nativeBuildInputs = with python3.pkgs; [ installShellFiles + wrapGAppsNoGuiHook + gobject-introspection setuptools-scm docutils @@ -54,7 +59,7 @@ in python3.pkgs.buildPythonApplication rec { setuptools ]; - buildInputs = [ libsndfile ]; + buildInputs = [ libsndfile glib ]; nativeCheckInputs = with python3.pkgs; [ twisted @@ -62,8 +67,11 @@ in python3.pkgs.buildPythonApplication rec { makeWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath bins) + "\${gappsWrapperArgs[@]}" ]; + dontWrapGApps = true; + outputs = [ "out" "man" ]; postBuild = '' make -C man From 40df049f425e9ef5e550ac9855dc87a724b8d9b0 Mon Sep 17 00:00:00 2001 From: Tochiaha Date: Mon, 3 Jun 2024 01:07:18 +0100 Subject: [PATCH 011/121] xmltoman: init at 0.6 --- pkgs/by-name/xm/xmltoman/package.nix | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/xm/xmltoman/package.nix diff --git a/pkgs/by-name/xm/xmltoman/package.nix b/pkgs/by-name/xm/xmltoman/package.nix new file mode 100644 index 000000000000..d62238c71780 --- /dev/null +++ b/pkgs/by-name/xm/xmltoman/package.nix @@ -0,0 +1,54 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, perlPackages +, perl +, installShellFiles +}: + +stdenvNoCC.mkDerivation rec { + pname = "xmltoman"; + version = "0.6"; + + src = fetchFromGitHub { + owner = "atsb"; + repo = "xmltoman"; + rev = version; + hash = "sha256-EmFdGIeBEcTY0Pqp7BJded9WB/DaXWcMNWh6aTsZlLg="; + }; + + nativeBuildInputs = [ + perl + installShellFiles + ]; + + buildInputs = [ + perlPackages.XMLTokeParser + ]; + + dontBuild = true; + + # File installation and setup similar to Makefile commands below. + installPhase = '' + runHook preInstall + + mkdir -p $out + perl xmltoman xml/xmltoman.1.xml > xmltoman.1 + perl xmltoman xml/xmlmantohtml.1.xml > xmlmantohtml.1 + install -d $out/bin $out/share/xmltoman + install -m 0755 xmltoman xmlmantohtml $out/bin + install -m 0644 xmltoman.dtd xmltoman.css xmltoman.xsl $out/share/xmltoman + installManPage *.1 + + runHook postInstall + ''; + + meta = with lib; { + description = "Two very simple scripts for converting xml to groff or html"; + homepage = "https://github.com/atsb/xmltoman"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ tochiaha ]; + mainProgram = "xmltoman"; + platforms = platforms.all; + }; +} From f923ab1ecfb2f5f722e3c5583aad2668db72f190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 4 Jun 2024 00:03:13 +0200 Subject: [PATCH 012/121] maintainers: Add geoffreyfrogeye --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f7ab1702b889..cfd90fe0ee5e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7412,6 +7412,16 @@ fingerprint = "386E D1BF 848A BB4A 6B4A 3C45 FC83 907C 125B C2BC"; }]; }; + geoffreyfrogeye = { + name = "Geoffrey Frogeye"; + email = "geoffrey@frogeye.fr"; + matrix = "@geoffrey:frogeye.fr"; + github = "GeoffreyFrogeye"; + githubId = 1685403; + keys = [{ + fingerprint = "4FBA 930D 314A 0321 5E2C DB0A 8312 C8CA C1BA C289"; + }]; + }; georgesalkhouri = { name = "Georges Alkhouri"; email = "incense.stitch_0w@icloud.com"; From 70fcd3ebf6d112a8053a0ea8c5afeffe77a1cab5 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Mon, 3 Jun 2024 20:45:53 -0700 Subject: [PATCH 013/121] nixosTests.lvm2: stage1 tests use xfs --- nixos/tests/lvm2/systemd-stage-1.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/nixos/tests/lvm2/systemd-stage-1.nix b/nixos/tests/lvm2/systemd-stage-1.nix index 7f106e1b0dd6..fe57a615a955 100644 --- a/nixos/tests/lvm2/systemd-stage-1.nix +++ b/nixos/tests/lvm2/systemd-stage-1.nix @@ -81,7 +81,17 @@ in import ../make-test-python.nix ({ pkgs, lib, ... }: { kernelPackages = lib.mkIf (kernelPackages != null) kernelPackages; }; - specialisation.boot-lvm.configuration.virtualisation.rootDevice = "/dev/test_vg/test_lv"; + specialisation.boot-lvm.configuration.virtualisation = { + useDefaultFilesystems = false; + fileSystems = { + "/" = { + device = "/dev/test_vg/test_lv"; + fsType = "xfs"; + }; + }; + + rootDevice = "/dev/test_vg/test_lv"; + }; }; testScript = '' @@ -99,7 +109,7 @@ in import ../make-test-python.nix ({ pkgs, lib, ... }: { # Ensure we have successfully booted from LVM assert "(initrd)" in machine.succeed("systemd-analyze") # booted with systemd in stage 1 - assert "/dev/mapper/test_vg-test_lv on / type ext4" in machine.succeed("mount") + assert "/dev/mapper/test_vg-test_lv on / type xfs" in machine.succeed("mount") assert "hello" in machine.succeed("cat /test") ${extraCheck} ''; From e55a4dcb7396ba44f36c1d14e1e7c12b39add859 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 3 Jun 2024 15:30:32 +0200 Subject: [PATCH 014/121] python311Packages.gpuctypes: remove duplicated patch file --- .../gpuctypes/fix-dlopen-cuda.patch | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 pkgs/development/python-modules/gpuctypes/fix-dlopen-cuda.patch diff --git a/pkgs/development/python-modules/gpuctypes/fix-dlopen-cuda.patch b/pkgs/development/python-modules/gpuctypes/fix-dlopen-cuda.patch deleted file mode 100644 index 8d3b69e35e11..000000000000 --- a/pkgs/development/python-modules/gpuctypes/fix-dlopen-cuda.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff --git a/gpuctypes/cuda.py b/gpuctypes/cuda.py -index acba81c..aac5fc7 100644 ---- a/gpuctypes/cuda.py -+++ b/gpuctypes/cuda.py -@@ -143,9 +143,25 @@ def char_pointer_cast(string, encoding='utf-8'): - - - -+NAME_TO_PATHS = { -+ "libcuda.so": ["@driverLink@/lib/libcuda.so"], -+ "libnvrtc.so": ["@libnvrtc@"], -+} -+def _try_dlopen(name): -+ try: -+ return ctypes.CDLL(name) -+ except OSError: -+ pass -+ for candidate in NAME_TO_PATHS.get(name, []): -+ try: -+ return ctypes.CDLL(candidate) -+ except OSError: -+ pass -+ raise RuntimeError(f"{name} not found") -+ - _libraries = {} --_libraries['libcuda.so'] = ctypes.CDLL(ctypes.util.find_library('cuda')) --_libraries['libnvrtc.so'] = ctypes.CDLL(ctypes.util.find_library('nvrtc')) -+_libraries['libcuda.so'] = _try_dlopen('libcuda.so') -+_libraries['libnvrtc.so'] = _try_dlopen('libnvrtc.so') - - - cuuint32_t = ctypes.c_uint32 From 25e4379880e050f173d39ba15e1f67a43ceb37f0 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:13:37 -0300 Subject: [PATCH 015/121] team-list: create sdl team A team dedicated to track SDL libraries. --- maintainers/team-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 7030ee6e6e1f..2bc124d6066a 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -962,6 +962,12 @@ with lib.maintainers; { shortName = "SageMath"; }; + sdl = { + members = [ ]; + scope = "Maintain SDL libraries."; + shortName = "SDL"; + }; + sphinx = { members = [ ]; scope = "Maintain Sphinx related packages."; From 7cd59482fa339f91017a78ca1bdc253c8c70e891 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 10:42:24 -0300 Subject: [PATCH 016/121] SDL2_mixer: refactor - add lib.teams.sdl.members --- pkgs/by-name/sd/SDL2_mixer/package.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sd/SDL2_mixer/package.nix b/pkgs/by-name/sd/SDL2_mixer/package.nix index c271614d8f5f..976dc2f5fa92 100644 --- a/pkgs/by-name/sd/SDL2_mixer/package.nix +++ b/pkgs/by-name/sd/SDL2_mixer/package.nix @@ -14,6 +14,9 @@ smpeg2, stdenv, timidity, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin), + enableSmpegtest ? (!stdenv.isDarwin), }: let @@ -66,8 +69,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.enableFeature false "music-mp3-mpg123-shared") (lib.enableFeature false "music-opus-shared") (lib.enableFeature false "music-midi-fluidsynth-shared") - (lib.enableFeature (!stdenv.isDarwin) "sdltest") - (lib.enableFeature (!stdenv.isDarwin) "smpegtest") + (lib.enableFeature enableSdltest "sdltest") + (lib.enableFeature enableSmpegtest "smpegtest") # override default path to allow MIDI files to be played (lib.withFeatureAs true "timidity-cfg" "${timidity}/share/timidity/timidity.cfg") ]; @@ -76,7 +79,8 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/libsdl-org/SDL_mixer"; description = "SDL multi-channel audio mixer library"; license = lib.licenses.zlib; - maintainers = with lib.maintainers; [ AndersonTorres ]; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ AndersonTorres ]); platforms = lib.platforms.unix; }; }) From aa4a99c7d668f686c8ef9fa57b095bf96e9bd32d Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 11:41:40 -0300 Subject: [PATCH 017/121] SDL2_net: refactor - add lib.teams.sdl.members - remove @AndersonTorres (since theey will be in the team) --- pkgs/by-name/sd/SDL2_net/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/SDL2_net/package.nix b/pkgs/by-name/sd/SDL2_net/package.nix index 79e0e0098623..0214e2cd5b4b 100644 --- a/pkgs/by-name/sd/SDL2_net/package.nix +++ b/pkgs/by-name/sd/SDL2_net/package.nix @@ -44,7 +44,8 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/libsdl-org/SDL_net"; description = "SDL multiplatform networking library"; license = lib.licenses.zlib; - maintainers = with lib.maintainers; [ AndersonTorres ]; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); inherit (SDL2.meta) platforms; }; }) From c2b8d53a357bdc6fd8523259da89a128f54a674c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:29:35 -0300 Subject: [PATCH 018/121] SDL_Pango: migrate to by-name --- .../{development/libraries => by-name/sd}/SDL_Pango/fixes.patch | 0 .../SDL_Pango/default.nix => by-name/sd/SDL_Pango/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 2 deletions(-) rename pkgs/{development/libraries => by-name/sd}/SDL_Pango/fixes.patch (100%) rename pkgs/{development/libraries/SDL_Pango/default.nix => by-name/sd/SDL_Pango/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_Pango/fixes.patch b/pkgs/by-name/sd/SDL_Pango/fixes.patch similarity index 100% rename from pkgs/development/libraries/SDL_Pango/fixes.patch rename to pkgs/by-name/sd/SDL_Pango/fixes.patch diff --git a/pkgs/development/libraries/SDL_Pango/default.nix b/pkgs/by-name/sd/SDL_Pango/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_Pango/default.nix rename to pkgs/by-name/sd/SDL_Pango/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9f0fb9cc21a..efa0a00fb51f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24196,8 +24196,6 @@ with pkgs; SDL_net = callPackage ../development/libraries/SDL_net { }; - SDL_Pango = callPackage ../development/libraries/SDL_Pango { }; - SDL_sound = callPackage ../development/libraries/SDL_sound { }; SDL_stretch= callPackage ../development/libraries/SDL_stretch { }; From 0ae60219f1f2676f3e1a72511b49ce77ac6f2837 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sun, 5 May 2024 18:36:10 -0300 Subject: [PATCH 019/121] SDL_Pango: refactor - finalAttrs - no nested with - sdl team --- .../{fixes.patch => 0001-fixes.patch} | 0 pkgs/by-name/sd/SDL_Pango/package.nix | 56 +++++++++++++------ 2 files changed, 40 insertions(+), 16 deletions(-) rename pkgs/by-name/sd/SDL_Pango/{fixes.patch => 0001-fixes.patch} (100%) diff --git a/pkgs/by-name/sd/SDL_Pango/fixes.patch b/pkgs/by-name/sd/SDL_Pango/0001-fixes.patch similarity index 100% rename from pkgs/by-name/sd/SDL_Pango/fixes.patch rename to pkgs/by-name/sd/SDL_Pango/0001-fixes.patch diff --git a/pkgs/by-name/sd/SDL_Pango/package.nix b/pkgs/by-name/sd/SDL_Pango/package.nix index e24af838c65e..8c4160d98684 100644 --- a/pkgs/by-name/sd/SDL_Pango/package.nix +++ b/pkgs/by-name/sd/SDL_Pango/package.nix @@ -1,33 +1,57 @@ -{ lib, stdenv, fetchpatch, fetchurl, SDL, autoreconfHook, pango, pkg-config }: +{ + lib, + SDL, + autoreconfHook, + fetchpatch, + fetchurl, + pango, + pkg-config, + stdenv, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin), +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_Pango"; version = "0.1.2"; src = fetchurl { - url = "mirror://sourceforge/sdlpango/${pname}-${version}.tar.gz"; - sha256 = "197baw1dsg0p4pljs5k0fshbyki00r4l49m1drlpqw6ggawx6xbz"; + url = "mirror://sourceforge/sdlpango/SDL_Pango-${finalAttrs.version}.tar.gz"; + hash = "sha256-f3XTuXrPcHxpbqEmQkkGIE6/oHZgFi3pJRc83QJX66Q="; }; patches = [ (fetchpatch { + name = "0000-api_additions.patch"; url = "https://sources.debian.org/data/main/s/sdlpango/0.1.2-6/debian/patches/api_additions.patch"; - sha256 = "00p5ry5gd3ixm257p9i2c4jg0qj8ipk8nf56l7c9fma8id3zxyld"; + hash = "sha256-jfr+R4tIVZfYoaY4i+aNSGLwJGEipnuKqD2O9orP5QI="; }) - ./fixes.patch + ./0001-fixes.patch ]; - preConfigure = "autoreconf -i -f"; - configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + nativeBuildInputs = [ + SDL + autoreconfHook + pkg-config + ]; - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ SDL pango ]; + buildInputs = [ + SDL + pango + ]; - meta = with lib; { - description = "Connects the Pango rendering engine to SDL"; - license = licenses.lgpl21Plus; - platforms = platforms.all; + configureFlags = [ + (lib.enableFeature enableSdltest "sdltest") + ]; + + strictDeps = true; + + meta = { homepage = "https://sdlpango.sourceforge.net/"; - maintainers = with maintainers; [ puckipedia ]; + description = "Connects the Pango rendering engine to SDL"; + license = lib.licenses.lgpl21Plus; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ puckipedia ]); + inherit (SDL.meta) platforms; }; -} +}) From a7eff4c8d8bc2db284246c17a53da40c31fc937a Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:34:46 -0300 Subject: [PATCH 020/121] SDL_gfx: migrate to by-name --- .../SDL_gfx/default.nix => by-name/sd/SDL_gfx/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_gfx/default.nix => by-name/sd/SDL_gfx/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_gfx/default.nix b/pkgs/by-name/sd/SDL_gfx/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_gfx/default.nix rename to pkgs/by-name/sd/SDL_gfx/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index efa0a00fb51f..39e31debebe4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; - SDL_gfx = callPackage ../development/libraries/SDL_gfx { }; - SDL_gpu = callPackage ../development/libraries/SDL_gpu { }; SDL_image = callPackage ../development/libraries/SDL_image { }; From db06c4f3df09648581343b8832ea4419d80080ca Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 13:04:15 -0300 Subject: [PATCH 021/121] SDL_gfx: refactor - strictDeps - add lib.teams.sdl.members --- pkgs/by-name/sd/SDL_gfx/package.nix | 66 +++++++++++++++++------------ 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/pkgs/by-name/sd/SDL_gfx/package.nix b/pkgs/by-name/sd/SDL_gfx/package.nix index bccc11f43d41..558e1943a14b 100644 --- a/pkgs/by-name/sd/SDL_gfx/package.nix +++ b/pkgs/by-name/sd/SDL_gfx/package.nix @@ -1,46 +1,58 @@ -{ lib, stdenv, fetchurl, SDL }: +{ + lib, + SDL, + fetchurl, + stdenv, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin), +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_gfx"; version = "2.0.27"; src = fetchurl { - url = "https://www.ferzkopp.net/Software/SDL_gfx-2.0/${pname}-${version}.tar.gz"; - sha256 = "sha256-37FaxfjOeklS3BLSrtl0dRjF5rM1wOMWNtI/k8Yw9Bk="; + url = "https://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${finalAttrs.version}.tar.gz"; + hash = "sha256-37FaxfjOeklS3BLSrtl0dRjF5rM1wOMWNtI/k8Yw9Bk="; }; + nativeBuildInputs = [ SDL ]; + + buildInputs = [ SDL ]; + # SDL_gfx.pc refers to sdl.pc and some SDL_gfx headers import SDL.h propagatedBuildInputs = [ SDL ]; - buildInputs = [ SDL ] ; - configureFlags = [ "--disable-mmx" ] - ++ lib.optional stdenv.isDarwin "--disable-sdltest"; + configureFlags = [ + (lib.enableFeature false "mmx") + (lib.enableFeature enableSdltest "sdltest") + ]; - meta = with lib; { + strictDeps = true; + + meta = { + homepage = "https://sourceforge.net/projects/sdlgfx/"; description = "SDL graphics drawing primitives and support functions"; - longDescription = '' - The SDL_gfx library evolved out of the SDL_gfxPrimitives code - which provided basic drawing routines such as lines, circles or - polygons and SDL_rotozoom which implemented a interpolating - rotozoomer for SDL surfaces. + The SDL_gfx library evolved out of the SDL_gfxPrimitives code which + provided basic drawing routines such as lines, circles or polygons and + SDL_rotozoom which implemented a interpolating rotozoomer for SDL + surfaces. The current components of the SDL_gfx library are: - * Graphic Primitives (SDL_gfxPrimitves.h) - * Rotozoomer (SDL_rotozoom.h) - * Framerate control (SDL_framerate.h) - * MMX image filters (SDL_imageFilter.h) - * Custom Blit functions (SDL_gfxBlitFunc.h) + - Graphic Primitives (SDL_gfxPrimitves.h) + - Rotozoomer (SDL_rotozoom.h) + - Framerate control (SDL_framerate.h) + - MMX image filters (SDL_imageFilter.h) + - Custom Blit functions (SDL_gfxBlitFunc.h) - The library is backwards compatible to the above mentioned - code. Its is written in plain C and can be used in C++ code. + The library is backwards compatible to the above mentioned code. Its is + written in plain C and can be used in C++ code. ''; - - homepage = "https://sourceforge.net/projects/sdlgfx/"; - license = licenses.zlib; - - maintainers = with maintainers; [ ]; - platforms = platforms.unix; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL.meta) platforms; }; -} +}) From 98784a4081c8580c1682db14b9aeba15754df8bf Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:35:08 -0300 Subject: [PATCH 022/121] SDL_gpu: migrate to by-name --- .../SDL_gpu/default.nix => by-name/sd/SDL_gpu/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_gpu/default.nix => by-name/sd/SDL_gpu/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_gpu/default.nix b/pkgs/by-name/sd/SDL_gpu/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_gpu/default.nix rename to pkgs/by-name/sd/SDL_gpu/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 39e31debebe4..3f8b1140e823 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; - SDL_gpu = callPackage ../development/libraries/SDL_gpu { }; - SDL_image = callPackage ../development/libraries/SDL_image { }; SDL_mixer = callPackage ../development/libraries/SDL_mixer { }; From 232ab4014bf43a510da96c0567b3c75a5e652332 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 18:28:35 -0300 Subject: [PATCH 023/121] SDL_gpu: 2019-01-24 -> 0-unstable-2022-06-24 - finalAttrs design pattern - remove @piddend (inactive, https://github.com/NixOS/nixpkgs/issues/290642) --- pkgs/by-name/sd/SDL_gpu/package.nix | 64 ++++++++++++++++++----------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/sd/SDL_gpu/package.nix b/pkgs/by-name/sd/SDL_gpu/package.nix index dc52e6afeea7..d2fb9d98d26e 100644 --- a/pkgs/by-name/sd/SDL_gpu/package.nix +++ b/pkgs/by-name/sd/SDL_gpu/package.nix @@ -1,36 +1,52 @@ -{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU }: +{ + lib, + SDL2, + cmake, + fetchFromGitHub, + libGLU, + pkg-config, + stdenv, +}: -stdenv.mkDerivation { - pname = "SDL_gpu-unstable"; - version = "2019-01-24"; +stdenv.mkDerivation (finalAttrs: { + pname = "SDL_gpu"; + version = "0-unstable-2022-06-24"; src = fetchFromGitHub { owner = "grimfang4"; repo = "sdl-gpu"; - rev = "e3d350b325a0e0d0b3007f69ede62313df46c6ef"; - sha256 = "0kibcaim01inb6xxn4mr6affn4hm50vz9kahb5k9iz8dmdsrhxy1"; + rev = "e8ee3522ba0dbe72ca387d978e5f49a9f31e7ba0"; + hash = "sha256-z1ZuHh9hvno2h+kCKfe+uWa/S6/OLZWWgLZ0zs9HetQ="; }; - nativeBuildInputs = [ cmake ]; - buildInputs = [ SDL2 libGLU ]; - - cmakeFlags = [ - "-DSDL_gpu_BUILD_DEMOS=OFF" - "-DSDL_gpu_BUILD_TOOLS=OFF" - "-DSDL_gpu_BUILD_VIDEO_TEST=OFF" - "-DSDL_gpu_BUILD_TESTS=OFF" + nativeBuildInputs = [ + SDL2 + cmake + pkg-config ]; - patchPhase = '' - sed -ie '210s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt - sed -ie '213s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt - ''; + buildInputs = [ + SDL2 + libGLU + ]; - meta = with lib; { + cmakeFlags = [ + (lib.cmakeBool "SDL_gpu_BUILD_DEMOS" false) + (lib.cmakeBool "SDL_gpu_BUILD_TOOLS" false) + (lib.cmakeBool "SDL_gpu_BUILD_VIDEO_TEST" false) + (lib.cmakeBool "SDL_gpu_BUILD_TESTS" false) + ]; + + outputs = [ "out" "dev" ]; + + strictDeps = true; + + meta = { description = "A library for high-performance, modern 2D graphics with SDL written in C"; - homepage = "https://github.com/grimfang4/sdl-gpu"; - license = licenses.mit; - maintainers = with maintainers; [ pmiddend ]; - platforms = platforms.linux; + homepage = "https://grimfang4.github.io/sdl-gpu"; + license = lib.licenses.mit; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL2.meta) platforms; }; -} +}) From d5bfe1b673f43fa57579e0dbe3c003b13e23e0bf Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:36:09 -0300 Subject: [PATCH 024/121] SDL_image: migrate to by-name --- .../SDL_image/default.nix => by-name/sd/SDL_image/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_image/default.nix => by-name/sd/SDL_image/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_image/default.nix b/pkgs/by-name/sd/SDL_image/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_image/default.nix rename to pkgs/by-name/sd/SDL_image/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3f8b1140e823..4ab03cf9e62f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; - SDL_image = callPackage ../development/libraries/SDL_image { }; - SDL_mixer = callPackage ../development/libraries/SDL_mixer { }; SDL_net = callPackage ../development/libraries/SDL_net { }; From 43017df2de62bd78565aeefc169ab45ed6e083a5 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 19:14:55 -0300 Subject: [PATCH 025/121] SDL_image: refactor - finalAttrs - strictDeps - split outputs - sdl team --- pkgs/by-name/sd/SDL_image/package.nix | 67 ++++++++++++++++++++------- 1 file changed, 49 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/sd/SDL_image/package.nix b/pkgs/by-name/sd/SDL_image/package.nix index 30f71bd3e520..7d8576bb5662 100644 --- a/pkgs/by-name/sd/SDL_image/package.nix +++ b/pkgs/by-name/sd/SDL_image/package.nix @@ -1,38 +1,69 @@ -{ lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, giflib, libXpm, pkg-config }: +{ + lib, + SDL, + fetchpatch, + fetchurl, + giflib, + libXpm, + libjpeg, + libpng, + libtiff, + pkg-config, + stdenv, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_image"; version = "1.2.12"; src = fetchurl { - url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz"; - sha256 = "16an9slbb8ci7d89wakkmyfvp7c0cval8xw4hkg0842nhhlp540b"; + url = "https://www.libsdl.org/projects/SDL_image/release/SDL_image-${finalAttrs.version}.tar.gz"; + hash = "sha256-C5ByKYRWEATehIR3RNVmgJ27na9zKp5QO5GhtahOVpk="; }; patches = [ + # Fixed security vulnerability in XCF image loader (fetchpatch { name = "CVE-2017-2887"; url = "https://github.com/libsdl-org/SDL_image/commit/e7723676825cd2b2ffef3316ec1879d7726618f2.patch"; includes = [ "IMG_xcf.c" ]; - sha256 = "174ka2r95i29nlshzgp6x5vc68v7pi8lhzf33and2b1ms49g4jb7"; + hash = "sha256-Z0nyEtE1LNGsGsN9SFG8ZyPDdunmvg81tUnEkrJQk5w="; }) ]; configureFlags = [ - # Disable its dynamic loading or dlopen will fail because of no proper rpath - "--disable-jpg-shared" - "--disable-png-shared" - "--disable-tif-shared" - ] ++ lib.optional stdenv.isDarwin "--disable-sdltest"; + # Disable dynamic loading or else dlopen will fail because of no proper + # rpath + (lib.enableFeature false "jpg-shared") + (lib.enableFeature false "png-shared") + (lib.enableFeature false "tif-shared") + (lib.enableFeature (!stdenv.isDarwin) "sdltest") + ]; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ SDL libpng libjpeg libtiff giflib libXpm ]; + nativeBuildInputs = [ + SDL + pkg-config + ]; - meta = with lib; { + buildInputs = [ + SDL + giflib + libXpm + libjpeg + libpng + libtiff + ]; + + outputs = [ "out" "dev" ]; + + strictDeps = true; + + meta = { + homepage = "http://www.libsdl.org/projects/SDL_image/"; description = "SDL image library"; - homepage = "http://www.libsdl.org/projects/SDL_image/"; - maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; - license = licenses.zlib; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ lovek323 ]); + inherit (SDL.meta) platforms; }; -} +}) From fe5f696e6826d7f20d388239a0ab9abf08cda9ac Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:30:07 -0300 Subject: [PATCH 026/121] SDL_audiolib: migrate to by-name --- .../default.nix => by-name/sd/SDL_audiolib/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_audiolib/default.nix => by-name/sd/SDL_audiolib/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_audiolib/default.nix b/pkgs/by-name/sd/SDL_audiolib/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_audiolib/default.nix rename to pkgs/by-name/sd/SDL_audiolib/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ab03cf9e62f..209f4c85bb80 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24182,8 +24182,6 @@ with pkgs; SDL = SDL_classic; - SDL_audiolib = callPackage ../development/libraries/SDL_audiolib { }; - SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; SDL_mixer = callPackage ../development/libraries/SDL_mixer { }; From 69c552c5ed09bfa7ae7d33f6f0af0c6d630df666 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 19:59:51 -0300 Subject: [PATCH 027/121] SDL_audiolib: refactor - strictDeps - sdl team --- pkgs/by-name/sd/SDL_audiolib/package.nix | 62 +++++++++++++----------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/pkgs/by-name/sd/SDL_audiolib/package.nix b/pkgs/by-name/sd/SDL_audiolib/package.nix index 9b8a163b206c..af84b5c0d0dc 100644 --- a/pkgs/by-name/sd/SDL_audiolib/package.nix +++ b/pkgs/by-name/sd/SDL_audiolib/package.nix @@ -1,23 +1,25 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, SDL2 -, pkg-config +{ + lib, + SDL2, + cmake, + fetchFromGitHub, + pkg-config, + stdenv, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_audiolib"; - version = "unstable-2022-04-17"; + version = "0-unstable-2022-04-17"; src = fetchFromGitHub { owner = "realnc"; repo = "SDL_audiolib"; rev = "908214606387ef8e49aeacf89ce848fb36f694fc"; - sha256 = "sha256-11KkwIhG1rX7yDFSj92NJRO9L2e7XZGq2gOJ54+sN/A="; + hash = "sha256-11KkwIhG1rX7yDFSj92NJRO9L2e7XZGq2gOJ54+sN/A="; }; nativeBuildInputs = [ + SDL2 cmake pkg-config ]; @@ -26,28 +28,32 @@ stdenv.mkDerivation rec { SDL2 ]; + strictDeps = true; + cmakeFlags = [ - "-DUSE_RESAMP_SRC=OFF" - "-DUSE_RESAMP_SOXR=OFF" - "-DUSE_DEC_DRFLAC=OFF" - "-DUSE_DEC_OPENMPT=OFF" - "-DUSE_DEC_XMP=OFF" - "-DUSE_DEC_MODPLUG=OFF" - "-DUSE_DEC_MPG123=OFF" - "-DUSE_DEC_SNDFILE=OFF" - "-DUSE_DEC_LIBVORBIS=OFF" - "-DUSE_DEC_LIBOPUSFILE=OFF" - "-DUSE_DEC_MUSEPACK=OFF" - "-DUSE_DEC_FLUIDSYNTH=OFF" - "-DUSE_DEC_BASSMIDI=OFF" - "-DUSE_DEC_WILDMIDI=OFF" - "-DUSE_DEC_ADLMIDI=OFF" + (lib.cmakeBool "USE_DEC_ADLMIDI" false) + (lib.cmakeBool "USE_DEC_BASSMIDI" false) + (lib.cmakeBool "USE_DEC_DRFLAC" false) + (lib.cmakeBool "USE_DEC_FLUIDSYNTH" false) + (lib.cmakeBool "USE_DEC_LIBOPUSFILE" false) + (lib.cmakeBool "USE_DEC_LIBVORBIS" false) + (lib.cmakeBool "USE_DEC_MODPLUG" false) + (lib.cmakeBool "USE_DEC_MPG123" false) + (lib.cmakeBool "USE_DEC_MUSEPACK" false) + (lib.cmakeBool "USE_DEC_OPENMPT" false) + (lib.cmakeBool "USE_DEC_SNDFILE" false) + (lib.cmakeBool "USE_DEC_WILDMIDI" false) + (lib.cmakeBool "USE_DEC_XMP" false) + (lib.cmakeBool "USE_RESAMP_SOXR" false) + (lib.cmakeBool "USE_RESAMP_SRC" false) ]; - meta = with lib; { + meta = { description = "Audio decoding, resampling and mixing library for SDL"; homepage = "https://github.com/realnc/SDL_audiolib"; - license = licenses.lgpl3Plus; - maintainers = with maintainers; [ ]; + license = lib.licenses.lgpl3Plus; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL2.meta) platforms; }; -} +}) From afffe819ecc7a54ceca8b6f5d8bc89bf83627d77 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:37:41 -0300 Subject: [PATCH 028/121] SDL_sixel: migrate to by-name --- .../SDL_sixel/default.nix => by-name/sd/SDL_sixel/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_sixel/default.nix => by-name/sd/SDL_sixel/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_sixel/default.nix b/pkgs/by-name/sd/SDL_sixel/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_sixel/default.nix rename to pkgs/by-name/sd/SDL_sixel/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 209f4c85bb80..babf9f89e83a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24182,8 +24182,6 @@ with pkgs; SDL = SDL_classic; - SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; - SDL_mixer = callPackage ../development/libraries/SDL_mixer { }; SDL_net = callPackage ../development/libraries/SDL_net { }; From f3d1af989411848587e7771f4156c4425bc02414 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:02:57 -0300 Subject: [PATCH 029/121] SDL_sixel: refactor - fix version - strictDeps --- pkgs/by-name/sd/SDL_sixel/package.nix | 34 ++++++++++++++++++--------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sd/SDL_sixel/package.nix b/pkgs/by-name/sd/SDL_sixel/package.nix index 189fdee05b26..7acd03b19f6c 100644 --- a/pkgs/by-name/sd/SDL_sixel/package.nix +++ b/pkgs/by-name/sd/SDL_sixel/package.nix @@ -1,27 +1,39 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, libsixel }: +{ + lib, + fetchFromGitHub, + libsixel, + pkg-config, + stdenv, +}: stdenv.mkDerivation { pname = "SDL_sixel"; - version = "1.2-nightly"; + version = "0-unstable-2016-02-06"; src = fetchFromGitHub { owner = "saitoha"; repo = "SDL1.2-SIXEL"; rev = "ab3fccac6e34260a617be511bd8c2b2beae41952"; - sha256 = "0gm2vngdac17lzw9azkhzazmfq3byjddms14gqjk18vnynfqp5wp"; + hash = "sha256-l5eLnfV2ozAlfiTo2pr0a2BXv/pwfpX4pycw1Z7doj4="; }; - configureFlags = [ "--enable-video-sixel" ]; - nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libsixel ]; - meta = with lib; { - description = "A cross-platform multimedia library, that supports sixel graphics on consoles"; + configureFlags = [ + (lib.enableFeature true "video-sixel") + ]; + + strictDeps = true; + + meta = { + homepage = "https://github.com/saitoha/SDL1.2-SIXEL"; + description = "A SDL 1.2 patched with libsixel support"; + license = lib.licenses.lgpl21; mainProgram = "sdl-config"; - homepage = "https://github.com/saitoha/SDL1.2-SIXEL"; - maintainers = with maintainers; [ vrthra ]; - platforms = platforms.linux; - license = licenses.lgpl21; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ vrthra ]); + platforms = lib.platforms.linux; }; } From 482e1a5a4b55bc5d40aebd3c97d5af62bb096885 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:38:17 -0300 Subject: [PATCH 030/121] SDL_sound: migrate to by-name --- .../SDL_sound/default.nix => by-name/sd/SDL_sound/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_sound/default.nix => by-name/sd/SDL_sound/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_sound/default.nix b/pkgs/by-name/sd/SDL_sound/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_sound/default.nix rename to pkgs/by-name/sd/SDL_sound/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index babf9f89e83a..126d8e001b77 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_net = callPackage ../development/libraries/SDL_net { }; - SDL_sound = callPackage ../development/libraries/SDL_sound { }; - SDL_stretch= callPackage ../development/libraries/SDL_stretch { }; SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; From 01923ef9afb721458ccd44d8522c6def289b8336 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:04:44 -0300 Subject: [PATCH 031/121] SDL_sound: refactor - finalAttrs - strictDeps - sdl team --- pkgs/by-name/sd/SDL_sound/package.nix | 48 +++++++++++++++++++++------ 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sd/SDL_sound/package.nix b/pkgs/by-name/sd/SDL_sound/package.nix index bdc97e98f341..b5e93b3efdf2 100644 --- a/pkgs/by-name/sd/SDL_sound/package.nix +++ b/pkgs/by-name/sd/SDL_sound/package.nix @@ -1,22 +1,48 @@ -{ stdenv, lib, fetchurl, SDL, libvorbis, flac, libmikmod }: +{ + lib, + SDL, + fetchurl, + flac, + libmikmod, + libvorbis, + stdenv, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin) +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_sound"; version = "1.0.3"; src = fetchurl { - url = "https://icculus.org/SDL_sound/downloads/${pname}-${version}.tar.gz"; - sha256 = "1pz6g56gcy7pmmz3hhych3iq9jvinml2yjz15fjqjlj8pc5zv69r"; + url = "https://icculus.org/SDL_sound/downloads/SDL_sound-${finalAttrs.version}.tar.gz"; + hash = "sha256-OZn9C7tIUomlK+FLL2i1ccuE44DMQzh+rfd49kx55t8="; }; - buildInputs = [ SDL libvorbis flac libmikmod ]; + nativeBuildInputs = [ + SDL + ]; - configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + buildInputs = [ + SDL + flac + libmikmod + libvorbis + ]; - meta = with lib; { - description = "SDL sound library"; - platforms = platforms.unix; - license = licenses.lgpl21; + configureFlags = [ + (lib.enableFeature enableSdltest "--disable-sdltest") + ]; + + strictDeps = true; + + meta = { homepage = "https://www.icculus.org/SDL_sound/"; + description = "SDL sound library"; + license = lib.licenses.lgpl21Plus; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + mainProgram = "playsound"; + inherit (SDL.meta) platforms; }; -} +}) From bfcdb8dbfaf9a77627e1091feb5624cbe5a748ef Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:38:56 -0300 Subject: [PATCH 032/121] SDL_stretch: migrate to by-name --- .../default.nix => by-name/sd/SDL_stretch/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_stretch/default.nix => by-name/sd/SDL_stretch/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_stretch/default.nix b/pkgs/by-name/sd/SDL_stretch/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_stretch/default.nix rename to pkgs/by-name/sd/SDL_stretch/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 126d8e001b77..bfeecc0bf556 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_net = callPackage ../development/libraries/SDL_net { }; - SDL_stretch= callPackage ../development/libraries/SDL_stretch { }; - SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; SDL2 = callPackage ../development/libraries/SDL2 { From af8e579938097727c8064ef01c86236e5dd1c73a Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:05:26 -0300 Subject: [PATCH 033/121] SDL_stretch: refactor - finalAttrs - strictDeps - sdl team --- pkgs/by-name/sd/SDL_stretch/package.nix | 29 +++++++++++++++++-------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/sd/SDL_stretch/package.nix b/pkgs/by-name/sd/SDL_stretch/package.nix index 99f86dd258b3..f7267b86fd6d 100644 --- a/pkgs/by-name/sd/SDL_stretch/package.nix +++ b/pkgs/by-name/sd/SDL_stretch/package.nix @@ -1,20 +1,31 @@ -{ lib, stdenv, fetchurl, SDL }: +{ + lib, + SDL, + fetchurl, + stdenv, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_stretch"; version = "0.3.1"; src = fetchurl { - url = "mirror://sourceforge/sdl-stretch/${version}/${pname}-${version}.tar.bz2"; - sha256 = "1mzw68sn4yxbp8429jg2h23h8xw2qjid51z1f5pdsghcn3x0pgvw"; + url = "mirror://sourceforge/sdl-stretch/${finalAttrs.version}/SDL_stretch-${finalAttrs.version}.tar.bz2"; + hash = "sha256-fL8L+rAMPt1uceGH0qLEgncEh4DiySQIuqt7YjUy/Nc="; }; + nativeBuildInputs = [ SDL ]; + buildInputs = [ SDL ]; - meta = with lib; { - description = "Stretch Functions For SDL"; + strictDeps = true; + + meta = { homepage = "https://sdl-stretch.sourceforge.net/"; - license = licenses.lgpl2; - platforms = platforms.linux; + description = "Stretch Functions For SDL"; + license = lib.licenses.lgpl2; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL.meta) platforms; }; -} +}) From 28d825fdbe20d6c4faa9fb75b3604f24d6c6836b Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 1 May 2024 21:39:19 -0300 Subject: [PATCH 034/121] SDL_ttf: migrate to by-name --- .../SDL_ttf/default.nix => by-name/sd/SDL_ttf/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_ttf/default.nix => by-name/sd/SDL_ttf/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_ttf/default.nix b/pkgs/by-name/sd/SDL_ttf/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_ttf/default.nix rename to pkgs/by-name/sd/SDL_ttf/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfeecc0bf556..e43d5b743f58 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24186,8 +24186,6 @@ with pkgs; SDL_net = callPackage ../development/libraries/SDL_net { }; - SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; - SDL2 = callPackage ../development/libraries/SDL2 { inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL; }; From 163163108ea3be9a2c0d4f6abe2974c4dba74582 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:07:19 -0300 Subject: [PATCH 035/121] SDL_ttf: refactor - finalAttrs - strictDeps - sdl team --- pkgs/by-name/sd/SDL_ttf/package.nix | 50 +++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/sd/SDL_ttf/package.nix b/pkgs/by-name/sd/SDL_ttf/package.nix index 5d353e3a6c0d..9cec49928bea 100644 --- a/pkgs/by-name/sd/SDL_ttf/package.nix +++ b/pkgs/by-name/sd/SDL_ttf/package.nix @@ -1,33 +1,55 @@ -{ lib, stdenv, fetchurl, fetchpatch, SDL, freetype }: +{ + lib, + SDL, + fetchpatch, + fetchurl, + freetype, + stdenv, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin), +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_ttf"; version = "2.0.11"; src = fetchurl { - url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz"; - sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j"; + url = "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${finalAttrs.version}.tar.gz"; + hash = "sha256-ckzYlez02jGaPvFkiStyB4vZJjKl2BIREmHN4kjrzbc="; }; patches = [ # Bug #830: TTF_RenderGlyph_Shaded is broken (fetchpatch { - url = "https://bugzilla-attachments.libsdl.org/attachment.cgi?id=830"; - sha256 = "0cfznfzg1hs10wl349z9n8chw80i5adl3iwhq4y102g0xrjyb72d"; + url = "https://bugzilla-attachments.libsdl.org/attachments/830/renderglyph_shaded.patch.txt"; + hash = "sha256-TZzlZe7gCRA8wZDHQZsqESAOGbLpJzIoB0HD8L6z3zE="; }) ]; patchFlags = [ "-p0" ]; - buildInputs = [ SDL freetype ]; + buildInputs = [ + SDL + freetype + ]; - configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + nativeBuildInputs = [ + SDL + freetype + ]; - meta = with lib; { + configureFlags = [ + (lib.enableFeature enableSdltest "-sdltest") + ]; + + strictDeps = true; + + meta = { + homepage = "https://github.com/libsdl-org/SDL_ttf"; description = "SDL TrueType library"; - license = licenses.zlib; - platforms = platforms.all; - homepage = "https://www.libsdl.org/projects/SDL_ttf/release-1.2.html"; - maintainers = with maintainers; [ abbradar ]; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ abbradar ]); + inherit (SDL.meta) platforms; }; -} +}) From b60b370d525b82ab88121f49e221c8ff34065369 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 00:12:24 -0300 Subject: [PATCH 036/121] SDL_mixer: migrate to by-name --- .../SDL_mixer/default.nix => by-name/sd/SDL_mixer/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_mixer/default.nix => by-name/sd/SDL_mixer/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_mixer/default.nix b/pkgs/by-name/sd/SDL_mixer/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_mixer/default.nix rename to pkgs/by-name/sd/SDL_mixer/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e43d5b743f58..890cfeda33ba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24182,8 +24182,6 @@ with pkgs; SDL = SDL_classic; - SDL_mixer = callPackage ../development/libraries/SDL_mixer { }; - SDL_net = callPackage ../development/libraries/SDL_net { }; SDL2 = callPackage ../development/libraries/SDL2 { From 3682b4386b1e60a60f75836435380eef3bdbc77c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:08:28 -0300 Subject: [PATCH 037/121] SDL_mixer: refactor - finalAttrs - strictDeps - sdl team - split outputs --- pkgs/by-name/sd/SDL_mixer/package.nix | 73 +++++++++++++++++++-------- 1 file changed, 53 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/sd/SDL_mixer/package.nix b/pkgs/by-name/sd/SDL_mixer/package.nix index 12b50cd476ba..4469afcf62f2 100644 --- a/pkgs/by-name/sd/SDL_mixer/package.nix +++ b/pkgs/by-name/sd/SDL_mixer/package.nix @@ -1,16 +1,28 @@ -{ stdenv, lib, fetchurl, fetchpatch -, SDL, libogg, libvorbis, smpeg, libmikmod -, fluidsynth, pkg-config -, enableNativeMidi ? false +{ + lib, + SDL, + fetchpatch, + fetchurl, + fluidsynth, + libmikmod, + libogg, + libvorbis, + pkg-config, + smpeg, + stdenv, + # Boolean flags + enableNativeMidi ? false, + enableSdltest ? (!stdenv.isDarwin), + enableSmpegtest ? (!stdenv.isDarwin), }: -stdenv.mkDerivation rec { - pname = "SDL_mixer"; +stdenv.mkDerivation (finalAttrs: { + pname = "SDL_mixer"; version = "1.2.12"; src = fetchurl { - url = "http://www.libsdl.org/projects/${pname}/release/${pname}-${version}.tar.gz"; - sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n"; + url = "http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${finalAttrs.version}.tar.gz"; + hash = "sha256-FkQwgnmpdXmQSeSCavLPx4fK0quxGqFFYuQCUh+GmSo="; }; patches = [ @@ -31,7 +43,7 @@ stdenv.mkDerivation rec { (fetchpatch { name = "mikmod-fixes.patch"; url = "https://github.com/libsdl-org/SDL_mixer/commit/a3e5ff8142cf3530cddcb27b58f871f387796ab6.patch"; - hash = "sha256-dqD8hxx6U2HaelUx0WsGPiWuso++LjwasaAeTTGqdbk"; + hash = "sha256-dqD8hxx6U2HaelUx0WsGPiWuso++LjwasaAeTTGqdbk="; }) # More incompatible function pointer conversion fixes (this time in Vorbis-decoding code). (fetchpatch { @@ -51,18 +63,39 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ]; + nativeBuildInputs = [ + SDL + pkg-config + smpeg + ]; - configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ] - ++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl" - ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ]; + buildInputs = [ + SDL + fluidsynth + libmikmod + libogg + libvorbis + smpeg + ]; - meta = with lib; { + configureFlags = [ + (lib.enableFeature false "music-ogg-shared") + (lib.enableFeature false "music-mod-shared") + (lib.enableFeature enableNativeMidi "music-native-midi-gpl") + (lib.enableFeature enableSdltest "sdltest") + (lib.enableFeature enableSmpegtest "smpegtest") + ]; + + outputs = [ "out" "dev" ]; + + strictDeps = true; + + meta = { description = "SDL multi-channel audio mixer library"; - homepage = "http://www.libsdl.org/projects/SDL_mixer/"; - maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; - license = licenses.zlib; + homepage = "http://www.libsdl.org/projects/SDL_mixer/"; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ lovek323 ]); + license = lib.licenses.zlib; + inherit (SDL.meta) platforms; }; -} +}) From 41724a307380a35642fdd67e3e39ad3938a61798 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 00:12:50 -0300 Subject: [PATCH 038/121] SDL_net: migrate to by-name --- .../SDL_net/default.nix => by-name/sd/SDL_net/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL_net/default.nix => by-name/sd/SDL_net/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL_net/default.nix b/pkgs/by-name/sd/SDL_net/package.nix similarity index 100% rename from pkgs/development/libraries/SDL_net/default.nix rename to pkgs/by-name/sd/SDL_net/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 890cfeda33ba..cd52ba07e1c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24182,8 +24182,6 @@ with pkgs; SDL = SDL_classic; - SDL_net = callPackage ../development/libraries/SDL_net { }; - SDL2 = callPackage ../development/libraries/SDL2 { inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL; }; From 113627be08048763444a93117b2e7be5761a445c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:11:05 -0300 Subject: [PATCH 039/121] SDL_net: refactor - finalAttrs - strictDeps - sdl team --- pkgs/by-name/sd/SDL_net/package.nix | 44 +++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/sd/SDL_net/package.nix b/pkgs/by-name/sd/SDL_net/package.nix index e902213c9710..4d45ff624e8f 100644 --- a/pkgs/by-name/sd/SDL_net/package.nix +++ b/pkgs/by-name/sd/SDL_net/package.nix @@ -1,23 +1,43 @@ -{ lib, stdenv, fetchurl, SDL, pkg-config }: +{ + lib, + SDL, + fetchurl, + pkg-config, + stdenv, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin) +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "SDL_net"; version = "1.2.8"; src = fetchurl { - url = "http://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz"; - sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz"; + url = "http://www.libsdl.org/projects/SDL_net/release/SDL_net-${finalAttrs.version}.tar.gz"; + hash = "sha256-X0p6i7iE95PCeKw/NxO+QZgMXu3M7P8CYEETR3FPrLQ="; }; - configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + nativeBuildInputs = [ + SDL + pkg-config + ]; - nativeBuildInputs = [ pkg-config ]; - propagatedBuildInputs = [ SDL ]; + propagatedBuildInputs = [ + SDL + ]; - meta = with lib; { + configureFlags = [ + (lib.enableFeature enableSdltest "sdltest") + ]; + + strictDeps = true; + + meta = { + homepage = "https://github.com/libsdl-org/SDL_net"; description = "SDL networking library"; - platforms = platforms.unix; - license = licenses.zlib; - homepage = "https://www.libsdl.org/projects/SDL_net/release-1.2.html"; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL.meta) platforms; }; -} +}) From 65f74c2ac1856a924246a443c7ab6b8f075bce33 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 00:15:23 -0300 Subject: [PATCH 040/121] SDL2_ttf: migrate to by-name --- .../SDL2_ttf/default.nix => by-name/sd/SDL2_ttf/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL2_ttf/default.nix => by-name/sd/SDL2_ttf/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL2_ttf/default.nix b/pkgs/by-name/sd/SDL2_ttf/package.nix similarity index 100% rename from pkgs/development/libraries/SDL2_ttf/default.nix rename to pkgs/by-name/sd/SDL2_ttf/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cd52ba07e1c7..c2f19b13f05c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24213,8 +24213,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) AudioToolbox CoreAudio; }; - SDL2_ttf = callPackage ../development/libraries/SDL2_ttf { }; - sdrplay = callPackage ../applications/radio/sdrplay { }; sdr-j-fm = libsForQt5.callPackage ../applications/radio/sdr-j-fm { }; From c6b17b3071c0a4cfa8802134a64a900a58376f61 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:11:42 -0300 Subject: [PATCH 041/121] SDL2_ttf: refactor - strictDeps - use system harfbuzz and freetype instead of vendored - sdl team --- pkgs/by-name/sd/SDL2_ttf/package.nix | 61 +++++++++++++++++++++------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/sd/SDL2_ttf/package.nix b/pkgs/by-name/sd/SDL2_ttf/package.nix index 3407478b39b1..b4cda2440237 100644 --- a/pkgs/by-name/sd/SDL2_ttf/package.nix +++ b/pkgs/by-name/sd/SDL2_ttf/package.nix @@ -1,32 +1,65 @@ -{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, harfbuzz, libGL, testers }: +{ + lib, + SDL2, + darwin, + fetchurl, + freetype, + harfbuzz, + libGL, + pkg-config, + stdenv, + testers, + # Boolean flags + enableSdltest ? (!stdenv.isDarwin), +}: stdenv.mkDerivation (finalAttrs: { pname = "SDL2_ttf"; version = "2.22.0"; src = fetchurl { - url = "https://www.libsdl.org/projects/SDL_ttf/release/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; + url = "https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${finalAttrs.version}.tar.gz"; sha256 = "sha256-1Iy9HOR1ueF4IGvzty1Wtm2E1E9krAWAMyg5YjTWdyM="; }; - configureFlags = [ "--disable-harfbuzz-builtin" ] - ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" ]; + nativeBuildInputs = [ + SDL2 + pkg-config + ]; - nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + SDL2 + freetype + harfbuzz + ] + ++ lib.optionals (!stdenv.isDarwin) [ + libGL + ] + ++ lib.optionals stdenv.isDarwin [ + darwin.libobjc + ]; - buildInputs = [ SDL2 freetype harfbuzz ] - ++ lib.optional (!stdenv.isDarwin) libGL - ++ lib.optional stdenv.isDarwin darwin.libobjc; + configureFlags = [ + (lib.enableFeature false "harfbuzz-builtin") + (lib.enableFeature false "freetype-builtin") + (lib.enableFeature enableSdltest "sdltest") + ]; - passthru.tests.pkg-config = testers.hasPkgConfigModules { - package = finalAttrs.finalPackage; + strictDeps = true; + + passthru = { + tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; }; - meta = with lib; { - description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer"; - platforms = platforms.unix; - license = licenses.zlib; + meta = { homepage = "https://github.com/libsdl-org/SDL_ttf"; + description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer"; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ ]); + inherit (SDL2.meta) platforms; pkgConfigModules = [ "SDL2_ttf" ]; }; }) From 1c5d6dcbc4838da104e80332ae61ed782a2de26c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 08:54:35 -0300 Subject: [PATCH 042/121] SDL2_gfx: migrate to by-name --- .../SDL2_gfx/default.nix => by-name/sd/SDL2_gfx/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/SDL2_gfx/default.nix => by-name/sd/SDL2_gfx/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL2_gfx/default.nix b/pkgs/by-name/sd/SDL2_gfx/package.nix similarity index 100% rename from pkgs/development/libraries/SDL2_gfx/default.nix rename to pkgs/by-name/sd/SDL2_gfx/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c2f19b13f05c..ea61052ce790 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24207,8 +24207,6 @@ with pkgs; }; }); - SDL2_gfx = callPackage ../development/libraries/SDL2_gfx { }; - SDL2_sound = callPackage ../development/libraries/SDL2_sound { inherit (darwin.apple_sdk.frameworks) AudioToolbox CoreAudio; }; From 0d85a83ce1c464c773abbdb4d092ad8246b6bf7a Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:12:56 -0300 Subject: [PATCH 043/121] SDL2_gfx: refactor - get rid of pname - strictDeps - split outputs - sdl team --- pkgs/by-name/sd/SDL2_gfx/package.nix | 80 ++++++++++++++++++---------- 1 file changed, 52 insertions(+), 28 deletions(-) diff --git a/pkgs/by-name/sd/SDL2_gfx/package.nix b/pkgs/by-name/sd/SDL2_gfx/package.nix index 83b57b42c7cd..7c0b5caa68aa 100644 --- a/pkgs/by-name/sd/SDL2_gfx/package.nix +++ b/pkgs/by-name/sd/SDL2_gfx/package.nix @@ -1,51 +1,75 @@ -{ lib, stdenv, darwin, fetchurl, pkg-config, SDL2, testers }: +{ lib, + SDL2, + darwin, + fetchurl, + pkg-config, + stdenv, + testers, + # Boolean flags + enableMmx ? stdenv.hostPlatform.isx86, + enableSdltest ? (!stdenv.isDarwin), +}: stdenv.mkDerivation (finalAttrs: { pname = "SDL2_gfx"; version = "1.0.4"; src = fetchurl { - url = "http://www.ferzkopp.net/Software/${finalAttrs.pname}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; - sha256 = "0qk2ax7f7grlxb13ba0ll3zlm8780s7j8fmrhlpxzjgdvldf1q33"; + url = "http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-${finalAttrs.version}.tar.gz"; + hash = "sha256-Y+DgGt3tyd8vhbk6JI8G6KBK/6AUqDXC6jS/405XYmI="; }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + SDL2 + pkg-config + ]; - buildInputs = [ SDL2 ] - ++ lib.optional stdenv.isDarwin darwin.libobjc; + buildInputs = [ + SDL2 + ] + ++ lib.optionals stdenv.isDarwin [ + darwin.libobjc + ]; - configureFlags = [(if stdenv.hostPlatform.isx86 then "--enable-mmx" else "--disable-mmx")] - ++ lib.optional stdenv.isDarwin "--disable-sdltest"; + outputs = [ "out" "dev" ]; - passthru.tests.pkg-config = testers.hasPkgConfigModules { - package = finalAttrs.finalPackage; + configureFlags = [ + (lib.enableFeature enableMmx "mmx") + (lib.enableFeature enableSdltest "sdltest") + ]; + + strictDeps = true; + + passthru = { + tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; }; - meta = with lib; { + meta = { + homepage = "http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"; description = "SDL graphics drawing primitives and support functions"; - longDescription = '' - The SDL_gfx library evolved out of the SDL_gfxPrimitives code - which provided basic drawing routines such as lines, circles or - polygons and SDL_rotozoom which implemented a interpolating - rotozoomer for SDL surfaces. + The SDL_gfx library evolved out of the SDL_gfxPrimitives code which + provided basic drawing routines such as lines, circles or polygons and + SDL_rotozoom which implemented a interpolating rotozoomer for SDL + surfaces. The current components of the SDL_gfx library are: - * Graphic Primitives (SDL_gfxPrimitves.h) - * Rotozoomer (SDL_rotozoom.h) - * Framerate control (SDL_framerate.h) - * MMX image filters (SDL_imageFilter.h) - * Custom Blit functions (SDL_gfxBlitFunc.h) + - Graphic Primitives (SDL_gfxPrimitves.h) + - Rotozoomer (SDL_rotozoom.h) + - Framerate control (SDL_framerate.h) + - MMX image filters (SDL_imageFilter.h) + - Custom Blit functions (SDL_gfxBlitFunc.h) - The library is backwards compatible to the above mentioned - code. Its is written in plain C and can be used in C++ code. + The library is backwards compatible to the above mentioned code. Its is + written in plain C and can be used in C++ code. ''; - - homepage = "http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"; - license = licenses.zlib; - maintainers = with maintainers; [ cpages ]; - platforms = platforms.unix; + license = lib.licenses.zlib; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ cpages ]); pkgConfigModules = [ "SDL2_gfx" ]; + inherit (SDL2.meta) platforms; }; }) From 7248ce50bb7e0a49727b3d2b67a5c460ddf53b84 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:14:39 -0300 Subject: [PATCH 044/121] SDL2_Pango: refactor - finalAttrs - strictDeps - splitting - sdl team --- pkgs/by-name/sd/SDL2_Pango/package.nix | 64 +++++++++++++------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/pkgs/by-name/sd/SDL2_Pango/package.nix b/pkgs/by-name/sd/SDL2_Pango/package.nix index e81d392ca6d6..de418804851e 100644 --- a/pkgs/by-name/sd/SDL2_Pango/package.nix +++ b/pkgs/by-name/sd/SDL2_Pango/package.nix @@ -1,48 +1,50 @@ -{ lib -, stdenv -, fetchFromGitHub -, autoreconfHook -, pkg-config -, freetype -, pango -, SDL2 -, darwin +{ + lib, + SDL2, + autoreconfHook, + darwin, + fetchFromGitHub, + freetype, + pango, + pkg-config, + stdenv, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "sdl2-pango"; version = "2.1.5"; src = fetchFromGitHub { owner = "markuskimius"; repo = "SDL2_Pango"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-8SL5ylxi87TuKreC8m2kxlLr8rcmwYYvwkp4vQZ9dkc="; }; + nativeBuildInputs = [ + SDL2 + autoreconfHook + pkg-config + ]; + + buildInputs = [ + SDL2 + freetype + pango + ] ++ lib.optionals stdenv.isDarwin [ + darwin.libobjc + ]; + outputs = [ "out" "dev" ]; strictDeps = true; - nativeBuildInputs = [ - autoreconfHook - pkg-config - SDL2 - ]; - - buildInputs = [ - freetype - pango - SDL2 - ] ++ lib.optionals stdenv.isDarwin [ - darwin.libobjc - ]; - - meta = with lib; { - description = "A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts"; + meta = { homepage = "https://github.com/markuskimius/SDL2_Pango"; - license = licenses.lgpl21Plus; - maintainers = with maintainers; [ rardiol ]; - platforms = platforms.all; + description = "A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts"; + license = lib.licenses.lgpl21Plus; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ rardiol ]); + inherit (SDL2.meta) platforms; }; -} +}) From af3995746a75b9f0a15cd359a0cac4d78726106c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 09:59:53 -0300 Subject: [PATCH 045/121] SDL2_sound: migrate to by-name --- .../default.nix => by-name/sd/SDL2_sound/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{development/libraries/SDL2_sound/default.nix => by-name/sd/SDL2_sound/package.nix} (100%) diff --git a/pkgs/development/libraries/SDL2_sound/default.nix b/pkgs/by-name/sd/SDL2_sound/package.nix similarity index 100% rename from pkgs/development/libraries/SDL2_sound/default.nix rename to pkgs/by-name/sd/SDL2_sound/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ea61052ce790..a4f49bbb7fff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24207,7 +24207,7 @@ with pkgs; }; }); - SDL2_sound = callPackage ../development/libraries/SDL2_sound { + SDL2_sound = callPackage ../by-name/sd/SDL2_sound/package.nix { inherit (darwin.apple_sdk.frameworks) AudioToolbox CoreAudio; }; From 03b72210cf1cd438920b11fdc85faf9e7e08d306 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 3 May 2024 10:01:29 -0300 Subject: [PATCH 046/121] SDL2_sound: internalize `darwin` --- pkgs/by-name/sd/SDL2_sound/package.nix | 9 +++++++-- pkgs/top-level/all-packages.nix | 4 ---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/sd/SDL2_sound/package.nix b/pkgs/by-name/sd/SDL2_sound/package.nix index 056991c9aca4..14f57cb49eab 100644 --- a/pkgs/by-name/sd/SDL2_sound/package.nix +++ b/pkgs/by-name/sd/SDL2_sound/package.nix @@ -8,10 +8,15 @@ , libmikmod , libvorbis , timidity -, AudioToolbox -, CoreAudio +, darwin }: +let + inherit (darwin.apple_sdk.frameworks) + AudioToolbox + CoreAudio + ; +in stdenv.mkDerivation rec { pname = "SDL2_sound"; version = "2.0.1"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a4f49bbb7fff..c52528d6f0e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24207,10 +24207,6 @@ with pkgs; }; }); - SDL2_sound = callPackage ../by-name/sd/SDL2_sound/package.nix { - inherit (darwin.apple_sdk.frameworks) AudioToolbox CoreAudio; - }; - sdrplay = callPackage ../applications/radio/sdrplay { }; sdr-j-fm = libsForQt5.callPackage ../applications/radio/sdr-j-fm { }; From a5ca567c5e9cb44dc4b867e9f9dfa9bee6e42efc Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 8 May 2024 11:17:49 -0300 Subject: [PATCH 047/121] guile-sdl: migrate to by-name --- .../guile-sdl/default.nix => by-name/gu/guile-sdl/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{development/guile-modules/guile-sdl/default.nix => by-name/gu/guile-sdl/package.nix} (100%) diff --git a/pkgs/development/guile-modules/guile-sdl/default.nix b/pkgs/by-name/gu/guile-sdl/package.nix similarity index 100% rename from pkgs/development/guile-modules/guile-sdl/default.nix rename to pkgs/by-name/gu/guile-sdl/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c52528d6f0e9..6bf10c4b48da 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17734,7 +17734,7 @@ with pkgs; guile-reader = callPackage ../development/guile-modules/guile-reader { }; - guile-sdl = callPackage ../development/guile-modules/guile-sdl { + guile-sdl = callPackage ../by-name/gu/guile-sdl/package.nix { guile = guile_2_2; }; From 7acf24e0932b2320234ef932658b06f5df6c0e0e Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:18:10 -0300 Subject: [PATCH 048/121] guile-sdl: refactor and fixup - finalAttrs - Call getDev for all SDL-related build inputs --- pkgs/by-name/gu/guile-sdl/package.nix | 54 ++++++++++++++------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/gu/guile-sdl/package.nix b/pkgs/by-name/gu/guile-sdl/package.nix index 75ca3d8e4aa4..27adc43a67aa 100644 --- a/pkgs/by-name/gu/guile-sdl/package.nix +++ b/pkgs/by-name/gu/guile-sdl/package.nix @@ -1,60 +1,62 @@ -{ lib -, stdenv -, fetchurl -, guile -, lzip -, pkg-config -, SDL -, SDL_image -, SDL_mixer -, SDL_ttf -, buildEnv +{ + lib, + SDL, + SDL_image, + SDL_mixer, + SDL_ttf, + buildEnv, + fetchurl, + guile, + lzip, + pkg-config, + stdenv, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "guile-sdl"; version = "0.6.1"; src = fetchurl { - url = "mirror://gnu/${pname}/${pname}-${version}.tar.lz"; + url = "mirror://gnu/guile-sdl/guile-sdl-${finalAttrs.version}.tar.lz"; hash = "sha256-/9sTTvntkRXck3FoRalROjqUQC8hkePtLTnHNZotKOE="; }; - strictDeps = true; - nativeBuildInputs = [ + SDL guile lzip pkg-config - SDL ]; buildInputs = [ - guile (lib.getDev SDL) - SDL_image - SDL_mixer - SDL_ttf + (lib.getDev SDL_image) + (lib.getDev SDL_mixer) + (lib.getDev SDL_ttf) + guile ]; makeFlags = let sdl-env = buildEnv { name = "sdl-env"; - paths = buildInputs; + paths = finalAttrs.buildInputs; }; in [ "SDLMINUSI=-I${sdl-env}/include/SDL" ]; - meta = with lib; { + strictDeps = true; + + meta = { homepage = "https://www.gnu.org/software/guile-sdl/"; description = "Guile bindings for SDL"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ vyp ]; - platforms = guile.meta.platforms; # configure: error: *** SDL version not found! broken = stdenv.isDarwin; + license = lib.licenses.gpl3Plus; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ vyp ]); + inherit (guile.meta) platforms; }; -} +}) From 51ebfa8f7834f66d7f7ae2b641c343fc86055b83 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:18:21 -0300 Subject: [PATCH 049/121] guile-sdl: unbreak in Darwin --- pkgs/by-name/gu/guile-sdl/package.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/by-name/gu/guile-sdl/package.nix b/pkgs/by-name/gu/guile-sdl/package.nix index 27adc43a67aa..c8c0085e92b8 100644 --- a/pkgs/by-name/gu/guile-sdl/package.nix +++ b/pkgs/by-name/gu/guile-sdl/package.nix @@ -52,8 +52,6 @@ stdenv.mkDerivation (finalAttrs: { meta = { homepage = "https://www.gnu.org/software/guile-sdl/"; description = "Guile bindings for SDL"; - # configure: error: *** SDL version not found! - broken = stdenv.isDarwin; license = lib.licenses.gpl3Plus; maintainers = lib.teams.sdl.members ++ (with lib.maintainers; [ vyp ]); From fe33007f338f4be2627978f0fdd4e1ee47cb808d Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 8 May 2024 11:39:47 -0300 Subject: [PATCH 050/121] vp: migrate to by-name --- .../misc/vp/default.nix => by-name/vp/vp/package.nix} | 0 pkgs/top-level/all-packages.nix | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) rename pkgs/{applications/misc/vp/default.nix => by-name/vp/vp/package.nix} (100%) diff --git a/pkgs/applications/misc/vp/default.nix b/pkgs/by-name/vp/vp/package.nix similarity index 100% rename from pkgs/applications/misc/vp/default.nix rename to pkgs/by-name/vp/vp/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6bf10c4b48da..bdfdae32d574 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14119,10 +14119,9 @@ with pkgs; vpn-slice = python3Packages.callPackage ../tools/networking/vpn-slice { }; - vp = callPackage ../applications/misc/vp { - # Enable next line for console graphics. Note that - # it requires `sixel` enabled terminals such as mlterm - # or xterm -ti 340 + vp = callPackage ../by-name/vp/vp/package.nix { + # Enable next line for console graphics. Note that it requires `sixel` + # enabled terminals such as mlterm or xterm -ti 340 SDL = SDL_sixel; }; From 2113ff8eaee338997a6d43b2744693291538d8a2 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:22:05 -0300 Subject: [PATCH 051/121] vp: 1.8 -> 1.8-unstable-2017-03-22 - finalAttrs - strictDeps - split outputs - fix NIX_CFLAGS_COMPILE - add maintainer AndersonTorres --- pkgs/by-name/vp/vp/package.nix | 48 +++++++++++++++++++++++---------- pkgs/top-level/all-packages.nix | 6 ----- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/vp/vp/package.nix b/pkgs/by-name/vp/vp/package.nix index 07dbfef2f5f5..3c3df820127f 100644 --- a/pkgs/by-name/vp/vp/package.nix +++ b/pkgs/by-name/vp/vp/package.nix @@ -1,28 +1,48 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, SDL, SDL_image }: +{ + lib, + SDL, + SDL_image, + autoreconfHook, + fetchFromGitHub, + stdenv, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "vp"; - version = "1.8"; + version = "1.8-unstable-2017-03-22"; src = fetchFromGitHub { owner = "erikg"; repo = "vp"; - rev = "v${version}"; - sha256 = "08q6xrxsyj6vj0sz59nix9isqz84gw3x9hym63lz6v8fpacvykdq"; + rev = "52bae15955dbd7270cc906af59bb0fe821a01f27"; + hash = "sha256-AWRJ//0z97EwvQ00qWDjVeZrPrKnRMOXn4RagdVrcFc="; }; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + SDL + ]; - buildInputs = [ SDL SDL_image ]; + buildInputs = [ + SDL + SDL_image + ]; - env.NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL -I${SDL_image}/include/SDL"; + outputs = [ "out" "man" ]; - meta = with lib; { - homepage = "https://brlcad.org/~erik/"; + strictDeps = true; + + env.NIX_CFLAGS_COMPILE = toString [ + "-I${lib.getDev SDL}/include/SDL" + "-I${lib.getDev SDL_image}/include/SDL" + ]; + + meta = { + homepage = "https://github.com/erikg/vp"; description = "SDL based picture viewer/slideshow"; - platforms = platforms.unix; - license = licenses.gpl3; - maintainers = [ maintainers.vrthra ]; + license = lib.licenses.gpl3Plus; mainProgram = "vp"; + maintainers = with lib.maintainers; [ AndersonTorres vrthra ]; + inherit (SDL.meta) platforms; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bdfdae32d574..7b70d6fcc410 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14119,12 +14119,6 @@ with pkgs; vpn-slice = python3Packages.callPackage ../tools/networking/vpn-slice { }; - vp = callPackage ../by-name/vp/vp/package.nix { - # Enable next line for console graphics. Note that it requires `sixel` - # enabled terminals such as mlterm or xterm -ti 340 - SDL = SDL_sixel; - }; - vtm = callPackage ../tools/misc/vtm { }; witness = callPackage ../tools/security/witness { }; From 70c61bd92f750bfdb40f7227bc15702047dad74b Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:22:42 -0300 Subject: [PATCH 052/121] vpWithSixel: init It is just an alias for vp with Sixel support. --- pkgs/top-level/all-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b70d6fcc410..9b774d13561a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14119,6 +14119,12 @@ with pkgs; vpn-slice = python3Packages.callPackage ../tools/networking/vpn-slice { }; + vpWithSixel = vp.override { + # Enable next line for console graphics. Note that it requires `sixel` + # enabled terminals such as mlterm or xterm -ti 340 + SDL = SDL_sixel; + }; + vtm = callPackage ../tools/misc/vtm { }; witness = callPackage ../tools/security/witness { }; From 9d630a3eb3780fb8e2398ae957d630479bbf537c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 8 May 2024 13:35:46 -0300 Subject: [PATCH 053/121] onscripter-en: migrate to by-name --- .../default.nix => by-name/on/onscripter-en/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{games/onscripter-en/default.nix => by-name/on/onscripter-en/package.nix} (100%) diff --git a/pkgs/games/onscripter-en/default.nix b/pkgs/by-name/on/onscripter-en/package.nix similarity index 100% rename from pkgs/games/onscripter-en/default.nix rename to pkgs/by-name/on/onscripter-en/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b774d13561a..9498b340dd33 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36960,8 +36960,6 @@ with pkgs; oilrush = callPackage ../games/oilrush { }; - onscripter-en = callPackage ../games/onscripter-en { }; - openarena = callPackage ../games/openarena { }; opendungeons = callPackage ../games/opendungeons { }; From 523f2542111b172b8f979e53e0ad68bf71928dfb Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:36:30 -0300 Subject: [PATCH 054/121] onscripter-en: 20111009 -> 20110930 Not a real update, just a new source and a new maintainer --- pkgs/by-name/on/onscripter-en/package.nix | 71 ++++++++++++++++------- 1 file changed, 50 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/on/onscripter-en/package.nix b/pkgs/by-name/on/onscripter-en/package.nix index edc9e20235ff..7178deaca64d 100644 --- a/pkgs/by-name/on/onscripter-en/package.nix +++ b/pkgs/by-name/on/onscripter-en/package.nix @@ -1,38 +1,67 @@ -{ lib, stdenv, fetchurl -, libpng, libjpeg, libogg, libvorbis, freetype, smpeg -, SDL, SDL_image, SDL_mixer, SDL_ttf }: +{ + lib, + SDL, + SDL_image, + SDL_mixer, + SDL_ttf, + fetchFromGitHub, + freetype, + libjpeg, + libogg, + libpng, + libvorbis, + pkg-config, + smpeg, + stdenv, +}: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "onscripter-en"; - version = "20111009"; + version = "20110930"; - src = fetchurl { - # The website is not available now. - url = "https://www.dropbox.com/s/ag21owy9poyr2oy/onscripter-en-20111009-src.tar.bz2"; - sha256 = "sha256-pir3ExhehJ9zNygDN83S4GOs5ugDNMjngxEwklAz9c8="; + # The website is not available now. Let's use a Museoa backup + src = fetchFromGitHub { + owner = "museoa"; + repo = "onscripter-en"; + rev = finalAttrs.version; + hash = "sha256-Lc5ZlH2C4ER02NmQ6icfiqpzVQdVUnOmdywGjjjSYSg="; }; - buildInputs = [ libpng libjpeg libogg libvorbis freetype smpeg - SDL SDL_image SDL_mixer SDL_ttf - ]; + nativeBuildInputs = [ + SDL + pkg-config + smpeg + ]; + + buildInputs = [ + SDL + SDL_image + SDL_mixer + SDL_ttf + freetype + libjpeg + libogg + libpng + libvorbis + smpeg + ]; configureFlags = [ "--no-werror" ]; - # Without this libvorbisfile.so is not getting linked properly for some reason. - NIX_CFLAGS_LINK = "-lvorbisfile"; + strictDeps = true; preBuild = '' sed -i 's/.dll//g' Makefile ''; - meta = with lib; { - broken = stdenv.isDarwin; + meta = { + homepage = "http://github.com/museoa/onscripter-en"; description = "Japanese visual novel scripting engine"; + license = lib.licenses.gpl2Plus; mainProgram = "onscripter-en"; - homepage = "http://unclemion.com/onscripter/"; - license = licenses.gpl2; - platforms = platforms.unix; - maintainers = with maintainers; [ abbradar ]; + maintainers = with lib.maintainers; [ AndersonTorres abbradar ]; + platforms = lib.platforms.unix; + broken = stdenv.isDarwin; }; -} +}) From 10b4bf5fde1de405d58bb99a49733bad0d76a890 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:50:45 -0300 Subject: [PATCH 055/121] btanks: migrate to by-name --- .../{games/btanks/default.nix => by-name/bt/btanks/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{games/btanks/default.nix => by-name/bt/btanks/package.nix} (100%) diff --git a/pkgs/games/btanks/default.nix b/pkgs/by-name/bt/btanks/package.nix similarity index 100% rename from pkgs/games/btanks/default.nix rename to pkgs/by-name/bt/btanks/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9498b340dd33..1c7c52e018a3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36451,8 +36451,6 @@ with pkgs; bsdgames = callPackage ../games/bsdgames { }; - btanks = callPackage ../games/btanks { }; - bugdom = callPackage ../games/bugdom { stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv; inherit (darwin.apple_sdk_11_0.frameworks) IOKit Foundation OpenGL; From b8bbaa85b040eeecce9b393e6cb9cd841cc69c30 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 21:04:15 -0300 Subject: [PATCH 056/121] btanks: adopt (by AndersonTorres) and fixup - finalAttrs - strictDeps --- pkgs/by-name/bt/btanks/package.nix | 68 ++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/bt/btanks/package.nix b/pkgs/by-name/bt/btanks/package.nix index f1f2e84a614d..c055e64e664d 100644 --- a/pkgs/by-name/bt/btanks/package.nix +++ b/pkgs/by-name/bt/btanks/package.nix @@ -1,23 +1,30 @@ -{ lib, stdenv, fetchurl, fetchpatch, scons, pkg-config, SDL, libGL, zlib, smpeg -, SDL_image, libvorbis, expat, zip, lua }: +{ + lib, + SDL, + SDL_image, + expat, + fetchpatch, + fetchurl, + libGL, + libvorbis, + lua, + pkg-config, + scons, + smpeg, + stdenv, + zip, + zlib, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "btanks"; version = "0.9.8083"; src = fetchurl { - url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; + url = "mirror://sourceforge/btanks/btanks-${finalAttrs.version}.tar.bz2"; hash = "sha256-P9LOaitF96YMOxFPqa/xPLPdn7tqZc3JeYt2xPosQ0E="; }; - nativeBuildInputs = [ scons pkg-config ]; - - buildInputs = [ SDL libGL zlib smpeg SDL_image libvorbis expat zip lua ]; - - enableParallelBuilding = true; - - env.NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL"; - patches = [ (fetchpatch { name = "lua52.patch"; @@ -42,10 +49,37 @@ stdenv.mkDerivation rec { }) ]; - meta = with lib; { - description = "Fast 2d tank arcade game"; + nativeBuildInputs = [ + SDL + pkg-config + scons + smpeg + zip + ]; + + buildInputs = [ + SDL + SDL_image + expat + libGL + libvorbis + lua + smpeg + zlib + ]; + + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL_image}/include/SDL"; + + enableParallelBuilding = true; + + strictDeps = true; + + meta = { homepage = "https://sourceforge.net/projects/btanks/"; - license = licenses.gpl2Plus; - platforms = platforms.linux; + description = "Fast 2d tank arcade game with multiplayer and split-screen modes"; + license = lib.licenses.gpl2Plus; + mainProgram = "btanks"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + inherit (SDL.meta) platforms; }; -} +}) From aca1dd0ea1a3c18e4121b4b8231b4a6bd6468dd1 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 19:18:36 -0300 Subject: [PATCH 057/121] SDL_image: remove lovek323 See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/sd/SDL_image/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/SDL_image/package.nix b/pkgs/by-name/sd/SDL_image/package.nix index 7d8576bb5662..c49e195f970f 100644 --- a/pkgs/by-name/sd/SDL_image/package.nix +++ b/pkgs/by-name/sd/SDL_image/package.nix @@ -63,7 +63,7 @@ stdenv.mkDerivation (finalAttrs: { description = "SDL image library"; license = lib.licenses.zlib; maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ lovek323 ]); + ++ (with lib.maintainers; [ ]); inherit (SDL.meta) platforms; }; }) From d55409b9303c0265729e98531f9000fa2ed2c20b Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:09:04 -0300 Subject: [PATCH 058/121] SDL_mixer: remove lovek323 See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/sd/SDL_mixer/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/SDL_mixer/package.nix b/pkgs/by-name/sd/SDL_mixer/package.nix index 4469afcf62f2..470bd5559d7c 100644 --- a/pkgs/by-name/sd/SDL_mixer/package.nix +++ b/pkgs/by-name/sd/SDL_mixer/package.nix @@ -94,7 +94,7 @@ stdenv.mkDerivation (finalAttrs: { description = "SDL multi-channel audio mixer library"; homepage = "http://www.libsdl.org/projects/SDL_mixer/"; maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ lovek323 ]); + ++ (with lib.maintainers; [ ]); license = lib.licenses.zlib; inherit (SDL.meta) platforms; }; From 8e271cf36d0472b4c93bd3e25c89acfcb8737cfd Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:38:36 -0300 Subject: [PATCH 059/121] SDL_ttf: remove abbradar See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/sd/SDL_ttf/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/SDL_ttf/package.nix b/pkgs/by-name/sd/SDL_ttf/package.nix index 9cec49928bea..a44aeaa7f05b 100644 --- a/pkgs/by-name/sd/SDL_ttf/package.nix +++ b/pkgs/by-name/sd/SDL_ttf/package.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { description = "SDL TrueType library"; license = lib.licenses.zlib; maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ abbradar ]); + ++ (with lib.maintainers; [ ]); inherit (SDL.meta) platforms; }; }) From 7ce57cada26a1454179c37998856e1d702a6ef2b Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:13:50 -0300 Subject: [PATCH 060/121] SDL2_gfx: remove cpages See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/sd/SDL2_gfx/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/SDL2_gfx/package.nix b/pkgs/by-name/sd/SDL2_gfx/package.nix index 7c0b5caa68aa..d74d859fefcb 100644 --- a/pkgs/by-name/sd/SDL2_gfx/package.nix +++ b/pkgs/by-name/sd/SDL2_gfx/package.nix @@ -68,7 +68,7 @@ stdenv.mkDerivation (finalAttrs: { ''; license = lib.licenses.zlib; maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ cpages ]); + ++ (with lib.maintainers; [ ]); pkgConfigModules = [ "SDL2_gfx" ]; inherit (SDL2.meta) platforms; }; From 1388b97ed0fb5ea4814b254e85f5b268acbc0b47 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:19:00 -0300 Subject: [PATCH 061/121] guile-sdl: remove vyp See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/gu/guile-sdl/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/gu/guile-sdl/package.nix b/pkgs/by-name/gu/guile-sdl/package.nix index c8c0085e92b8..83879b26f7db 100644 --- a/pkgs/by-name/gu/guile-sdl/package.nix +++ b/pkgs/by-name/gu/guile-sdl/package.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: { description = "Guile bindings for SDL"; license = lib.licenses.gpl3Plus; maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ vyp ]); + ++ (with lib.maintainers; [ ]); inherit (guile.meta) platforms; }; }) From c8a16792658384a80d3fa8ccf02cef8e65235061 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:23:55 -0300 Subject: [PATCH 062/121] vp: remove vrthra See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/vp/vp/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/vp/vp/package.nix b/pkgs/by-name/vp/vp/package.nix index 3c3df820127f..0676ef14f2aa 100644 --- a/pkgs/by-name/vp/vp/package.nix +++ b/pkgs/by-name/vp/vp/package.nix @@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { description = "SDL based picture viewer/slideshow"; license = lib.licenses.gpl3Plus; mainProgram = "vp"; - maintainers = with lib.maintainers; [ AndersonTorres vrthra ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; inherit (SDL.meta) platforms; }; }) From 5b8c9b5dec84dfe72ca103e11fc47004a8a084f0 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:37:35 -0300 Subject: [PATCH 063/121] onscripter-en: remove abbradar See https://github.com/NixOS/nixpkgs/issues/290642. --- pkgs/by-name/on/onscripter-en/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/on/onscripter-en/package.nix b/pkgs/by-name/on/onscripter-en/package.nix index 7178deaca64d..74b440b42773 100644 --- a/pkgs/by-name/on/onscripter-en/package.nix +++ b/pkgs/by-name/on/onscripter-en/package.nix @@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: { description = "Japanese visual novel scripting engine"; license = lib.licenses.gpl2Plus; mainProgram = "onscripter-en"; - maintainers = with lib.maintainers; [ AndersonTorres abbradar ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; platforms = lib.platforms.unix; broken = stdenv.isDarwin; }; From e6c228544d2651ed0a481f28bed75b73f49432e0 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Fri, 24 May 2024 09:04:46 -0300 Subject: [PATCH 064/121] harec: format with nixfmt-rfc-style --- pkgs/by-name/ha/harec/package.nix | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/ha/harec/package.nix b/pkgs/by-name/ha/harec/package.nix index e95ad7ed7095..e3be45fef2c1 100644 --- a/pkgs/by-name/ha/harec/package.nix +++ b/pkgs/by-name/ha/harec/package.nix @@ -1,17 +1,20 @@ -{ lib -, stdenv -, fetchFromSourcehut -, qbe -, gitUpdater +{ + fetchFromSourcehut, + gitUpdater, + lib, + qbe, + stdenv, }: let platform = lib.toLower stdenv.hostPlatform.uname.system; arch = stdenv.hostPlatform.uname.processor; - qbePlatform = { - x86_64 = "amd64_sysv"; - aarch64 = "arm64"; - riscv64 = "rv64"; - }.${arch}; + qbePlatform = + { + x86_64 = "amd64_sysv"; + aarch64 = "arm64"; + riscv64 = "rv64"; + } + .${arch}; in stdenv.mkDerivation (finalAttrs: { pname = "harec"; @@ -24,13 +27,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-NOfoCT/wKZ3CXYzXZq7plXcun+MXQicfzBOmetXN7Qs="; }; - nativeBuildInputs = [ - qbe - ]; + nativeBuildInputs = [ qbe ]; - buildInputs = [ - qbe - ]; + buildInputs = [ qbe ]; makeFlags = [ "PREFIX=${builtins.placeholder "out"}" @@ -65,7 +64,8 @@ stdenv.mkDerivation (finalAttrs: { # The upstream developers do not like proprietary operating systems; see # https://harelang.org/platforms/ # UPDATE: https://github.com/hshq/harelang provides a MacOS port - platforms = with lib.platforms; + platforms = + with lib.platforms; lib.intersectLists (freebsd ++ openbsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); badPlatforms = lib.platforms.darwin; }; From 3297bf3ba6a0fb6b12fa3527fbe25449f5f6e6e0 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Fri, 24 May 2024 09:06:47 -0300 Subject: [PATCH 065/121] harec: expose qbe through passthru harec and hare should always have the same qbe package. By exposing the latter under harec's passthru attribute and using it as hare's qbe, we assure that they will always hare the same qbe package even if there's a need for a local overlay. --- pkgs/by-name/ha/hare/package.nix | 2 +- pkgs/by-name/ha/harec/package.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ha/hare/package.nix b/pkgs/by-name/ha/hare/package.nix index 5c8a80520937..faa766c056df 100644 --- a/pkgs/by-name/ha/hare/package.nix +++ b/pkgs/by-name/ha/hare/package.nix @@ -3,7 +3,6 @@ stdenv, fetchFromSourcehut, harec, - qbe, gitUpdater, scdoc, tzdata, @@ -33,6 +32,7 @@ assert ''; let + inherit (harec) qbe; buildArch = stdenv.buildPlatform.uname.processor; arch = stdenv.hostPlatform.uname.processor; platform = lib.toLower stdenv.hostPlatform.uname.system; diff --git a/pkgs/by-name/ha/harec/package.nix b/pkgs/by-name/ha/harec/package.nix index e3be45fef2c1..f0534064be3c 100644 --- a/pkgs/by-name/ha/harec/package.nix +++ b/pkgs/by-name/ha/harec/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { passthru = { updateScript = gitUpdater { }; + # To be kept in sync with the hare package. + inherit qbe; }; meta = { From b0fcfa88cf11fe6e2546ff4a1452e96d4c7a41bb Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 19:58:37 -0300 Subject: [PATCH 066/121] hareHook: init Co-authored-by: Colin --- .../manual/release-notes/rl-2411.section.md | 4 ++ pkgs/by-name/ha/hare/hook.nix | 56 +++++++++++++++++++ pkgs/by-name/ha/hare/package.nix | 11 +--- pkgs/by-name/ha/hare/setup-hook.sh | 39 +++++++++++-- pkgs/top-level/all-packages.nix | 4 ++ 5 files changed, 99 insertions(+), 15 deletions(-) create mode 100644 pkgs/by-name/ha/hare/hook.nix diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index 51904352b3b7..cb8eb6dfb3be 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -46,6 +46,10 @@ +- `hareHook` has been added as the language framework for Hare. From now on, it, + not the `hare` package, should be added to `nativeBuildInputs` when building + Hare programs. + - To facilitate dependency injection, the `imgui` package now builds a static archive using vcpkg' CMake rules. The derivation now installs "impl" headers selectively instead of by a wildcard. Use `imgui.src` if you just want to access the unpacked sources. diff --git a/pkgs/by-name/ha/hare/hook.nix b/pkgs/by-name/ha/hare/hook.nix new file mode 100644 index 000000000000..e5a9bad131aa --- /dev/null +++ b/pkgs/by-name/ha/hare/hook.nix @@ -0,0 +1,56 @@ +{ + hare, + lib, + makeSetupHook, + makeWrapper, + runCommand, + stdenv, + writeShellApplication, +}: +let + arch = stdenv.targetPlatform.uname.processor; + harePropagationInputs = builtins.attrValues { inherit (hare) harec qbe; }; + hareWrappedScript = writeShellApplication { + # `name` MUST be `hare`, since its role is to replace the hare binary. + name = "hare"; + runtimeInputs = [ hare ]; + excludeShellChecks = [ "SC2086" ]; + # ''${cmd:+"$cmd"} is used on the default case to keep the same behavior as + # the hare binary: If "$cmd" is passed directly and it's empty, the hare + # binary will treat it as an unrecognized command. + text = '' + readonly cmd="$1" + shift + case "$cmd" in + "test"|"run"|"build") exec hare "$cmd" $NIX_HAREFLAGS "$@" ;; + *) exec hare ''${cmd:+"$cmd"} "$@" + esac + ''; + }; + hareWrapper = runCommand "hare-wrapper" { nativeBuildInputs = [ makeWrapper ]; } '' + mkdir -p $out/bin + install ${lib.getExe hareWrappedScript} $out/bin/hare + makeWrapper ${lib.getExe hare} $out/bin/hare-native \ + --inherit-argv0 \ + --unset AR \ + --unset LD \ + --unset CC + ''; +in +makeSetupHook { + name = "hare-hook"; + # The propagation of `qbe` and `harec` (harePropagationInputs) is needed for + # build frameworks like `haredo`, which set the HAREC and QBE env vars to + # `harec` and `qbe` respectively. We use the derivations from the `hare` + # package to assure that there's no different behavior between the `hareHook` + # and `hare` packages. + propagatedBuildInputs = [ hareWrapper ] ++ harePropagationInputs; + substitutions = { + hare_unconditional_flags = "-q -a${arch}"; + hare_stdlib = "${hare}/src/hare/stdlib"; + }; + meta = { + description = "A setup hook for the Hare compiler"; + inherit (hare.meta) badPlatforms platforms; + }; +} ./setup-hook.sh diff --git a/pkgs/by-name/ha/hare/package.nix b/pkgs/by-name/ha/hare/package.nix index faa766c056df..80c30e89a2b6 100644 --- a/pkgs/by-name/ha/hare/package.nix +++ b/pkgs/by-name/ha/hare/package.nix @@ -130,13 +130,6 @@ stdenv.mkDerivation (finalAttrs: { scdoc ]; - # Needed for build frameworks like `haredo`, which set the HAREC and QBE env vars to `harec` and - # `qbe` respectively. - propagatedBuildInputs = [ - harec - qbe - ]; - buildInputs = [ harec qbe @@ -171,8 +164,6 @@ stdenv.mkDerivation (finalAttrs: { ln -s configs/${platform}.mk config.mk ''; - setupHook = ./setup-hook.sh; - passthru = { updateScript = gitUpdater { }; tests = @@ -182,6 +173,8 @@ stdenv.mkDerivation (finalAttrs: { // lib.optionalAttrs (stdenv.buildPlatform.canExecute stdenv.hostPlatform) { mimeModule = callPackage ./mime-module-test.nix { hare = finalAttrs.finalPackage; }; }; + # To be propagated by `hareHook`. + inherit harec qbe; }; meta = { diff --git a/pkgs/by-name/ha/hare/setup-hook.sh b/pkgs/by-name/ha/hare/setup-hook.sh index d2d2c34354d6..3a427fd70328 100644 --- a/pkgs/by-name/ha/hare/setup-hook.sh +++ b/pkgs/by-name/ha/hare/setup-hook.sh @@ -1,9 +1,36 @@ -addHarepath () { - for haredir in third-party stdlib; do - if [[ -d "$1/src/hare/$haredir" ]]; then - addToSearchPath HAREPATH "$1/src/hare/$haredir" - fi - done +# shellcheck disable=SC2154,SC2034,SC2016 + +addHarepath() { + local -r thirdparty="${1-}/src/hare/third-party" + if [[ -d "$thirdparty" ]]; then + addToSearchPath HAREPATH "$thirdparty" + fi } +# Hare's stdlib should come after its third party libs, since the latter may +# expand or shadow the former. +readonly hareSetStdlibPhase=' +addToSearchPath HAREPATH "@hare_stdlib@" +' +readonly hareInfoPhase=' +echoCmd "HARECACHE" "$HARECACHE" +echoCmd "HAREPATH" "$HAREPATH" +echoCmd "hare" "$(command -v hare)" +echoCmd "hare-native" "$(command -v hare-native)" +' +prePhases+=("hareSetStdlibPhase" "hareInfoPhase") + +readonly hare_unconditional_flags="@hare_unconditional_flags@" +case "${hareBuildType:-"release"}" in +"release") export NIX_HAREFLAGS="-R $hare_unconditional_flags" ;; +"debug") export NIX_HAREFLAGS="$hare_unconditional_flags" ;; +*) + printf -- 'Invalid hareBuildType: "%s"\n' "${hareBuildType-}" + exit 1 + ;; +esac + +HARECACHE="$(mktemp -d)" +export HARECACHE + addEnvHooks "$hostOffset" addHarepath diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2c8cad1325ba..2e7ff897c020 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25196,6 +25196,10 @@ with pkgs; leaps = callPackage ../development/tools/leaps { }; + ### DEVELOPMENT / HARE + + hareHook = callPackage ../by-name/ha/hare/hook.nix { }; + ### DEVELOPMENT / JAVA MODULES javaPackages = recurseIntoAttrs (callPackage ./java-packages.nix { }); From 6893d370fc493cb5bba95f1d325a5293756c089a Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:13:39 -0300 Subject: [PATCH 067/121] haredoc: format with nixfmt-rfc-style --- pkgs/by-name/ha/haredoc/package.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/ha/haredoc/package.nix b/pkgs/by-name/ha/haredoc/package.nix index 2476e7d937c5..021df50b0671 100644 --- a/pkgs/by-name/ha/haredoc/package.nix +++ b/pkgs/by-name/ha/haredoc/package.nix @@ -1,24 +1,29 @@ -{ lib -, stdenv -, scdoc -, hare +{ + lib, + stdenv, + scdoc, + hare, }: let arch = stdenv.hostPlatform.uname.processor; in stdenv.mkDerivation { pname = "haredoc"; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; inherit (hare) version src; - strictDeps = true; - enableParallelBuilding = true; - nativeBuildInputs = [ scdoc hare ]; + strictDeps = true; + + enableParallelBuilding = true; + preBuild = '' HARECACHE="$(mktemp -d)" export HARECACHE From 85b5260197dd9feb9b17b78e046890b51c173cec Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:14:30 -0300 Subject: [PATCH 068/121] haredoc: make use of hareHook --- pkgs/by-name/ha/haredoc/package.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/ha/haredoc/package.nix b/pkgs/by-name/ha/haredoc/package.nix index 021df50b0671..773b226316ae 100644 --- a/pkgs/by-name/ha/haredoc/package.nix +++ b/pkgs/by-name/ha/haredoc/package.nix @@ -3,10 +3,8 @@ stdenv, scdoc, hare, + hareHook, }: -let - arch = stdenv.hostPlatform.uname.processor; -in stdenv.mkDerivation { pname = "haredoc"; outputs = [ @@ -17,22 +15,17 @@ stdenv.mkDerivation { nativeBuildInputs = [ scdoc - hare + hareHook ]; strictDeps = true; enableParallelBuilding = true; - preBuild = '' - HARECACHE="$(mktemp -d)" - export HARECACHE - ''; - buildPhase = '' runHook preBuild - hare build -qR -a ${arch} -o haredoc ./cmd/haredoc + hare build -o haredoc ./cmd/haredoc scdoc haredoc.1 scdoc haredoc.5 @@ -55,6 +48,6 @@ stdenv.mkDerivation { license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ onemoresuza ]; mainProgram = "haredoc"; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; } From f1eabff06ec31bc63531d710338c4ce92c4e98d3 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:11:26 -0300 Subject: [PATCH 069/121] haredo: make use of hareHook --- pkgs/by-name/ha/haredo/package.nix | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/ha/haredo/package.nix b/pkgs/by-name/ha/haredo/package.nix index e722d11eafd5..08592c674395 100644 --- a/pkgs/by-name/ha/haredo/package.nix +++ b/pkgs/by-name/ha/haredo/package.nix @@ -2,16 +2,13 @@ stdenv, lib, fetchFromSourcehut, - hare, + hareHook, scdoc, nix-update-script, makeWrapper, bash, substituteAll, }: -let - arch = stdenv.hostPlatform.uname.processor; -in stdenv.mkDerivation (finalAttrs: { pname = "haredo"; version = "1.0.5"; @@ -37,27 +34,23 @@ stdenv.mkDerivation (finalAttrs: { ]; nativeBuildInputs = [ - hare + hareHook makeWrapper scdoc ]; enableParallelChecking = true; + env.PREFIX = builtins.placeholder "out"; + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; dontConfigure = true; - preBuild = '' - HARECACHE="$(mktemp -d)" - export HARECACHE - export PREFIX=${builtins.placeholder "out"} - ''; - buildPhase = '' runHook preBuild - hare build -o bin/haredo -qRa${arch} ./src + hare build -o bin/haredo ./src scdoc doc/haredo.1 runHook postBuild @@ -92,6 +85,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.wtfpl; maintainers = with lib.maintainers; [ onemoresuza ]; mainProgram = "haredo"; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From cadd323c202cf55b95b2d730f926c1a5c0e5bc09 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:11:11 -0300 Subject: [PATCH 070/121] treecat: format with nixfmt-rfc-style --- pkgs/by-name/tr/treecat/package.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/tr/treecat/package.nix b/pkgs/by-name/tr/treecat/package.nix index df184b9d1062..82e850025349 100644 --- a/pkgs/by-name/tr/treecat/package.nix +++ b/pkgs/by-name/tr/treecat/package.nix @@ -1,15 +1,19 @@ -{ stdenv -, fetchFromSourcehut -, hare -, haredo -, lib -, scdoc +{ + stdenv, + fetchFromSourcehut, + hare, + haredo, + lib, + scdoc, }: stdenv.mkDerivation (finalAttrs: { pname = "treecat"; version = "1.0.2-unstable-2023-11-28"; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; src = fetchFromSourcehut { owner = "~autumnull"; From 4a6c11900142e2476d3f3ae26dd2df6e4ae6135f Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:12:00 -0300 Subject: [PATCH 071/121] treecat: make use of hareHook --- pkgs/by-name/tr/treecat/package.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/tr/treecat/package.nix b/pkgs/by-name/tr/treecat/package.nix index 82e850025349..338e27af67d7 100644 --- a/pkgs/by-name/tr/treecat/package.nix +++ b/pkgs/by-name/tr/treecat/package.nix @@ -1,7 +1,7 @@ { stdenv, fetchFromSourcehut, - hare, + hareHook, haredo, lib, scdoc, @@ -23,18 +23,14 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ - hare + hareHook haredo scdoc ]; - dontConfigure = true; + env.PREFIX = builtins.placeholder "out"; - preBuild = '' - HARECACHE="$(mktemp -d)" - export HARECACHE - export PREFIX="${builtins.placeholder "out"}" - ''; + dontConfigure = true; meta = { description = "Serialize a directory to a tree diagram, and vice versa"; @@ -46,6 +42,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.wtfpl; maintainers = with lib.maintainers; [ onemoresuza ]; mainProgram = "treecat"; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From 1ef1988149cd3f0172ae2ec244ed4b000f7c701e Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 11:57:02 -0300 Subject: [PATCH 072/121] hareThirdParty.hare-json: format with nixfmt-rfc-style --- .../hare-third-party/hare-json/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-json/default.nix b/pkgs/development/hare-third-party/hare-json/default.nix index c7a71f342967..b66f0df3acf9 100644 --- a/pkgs/development/hare-third-party/hare-json/default.nix +++ b/pkgs/development/hare-third-party/hare-json/default.nix @@ -1,8 +1,14 @@ -{ lib, stdenv, hare, harec, fetchFromSourcehut }: +{ + fetchFromSourcehut, + hare, + harec, + lib, + stdenv, +}: stdenv.mkDerivation (finalAttrs: { pname = "hare-json"; - version = "unstable-2023-03-13"; + version = "0-unstable-2023-03-13"; src = fetchFromSourcehut { owner = "~sircmpwn"; @@ -25,7 +31,6 @@ stdenv.mkDerivation (finalAttrs: { description = "This package provides JSON support for Hare"; license = with licenses; [ mpl20 ]; maintainers = with maintainers; [ starzation ]; - inherit (harec.meta) platforms badPlatforms; }; }) From 081396ca7dd0b7f2a8111a0f49ad9cc202923a92 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 12:01:57 -0300 Subject: [PATCH 073/121] hareThirdParty.hare-json: make use of hareHook --- pkgs/development/hare-third-party/hare-json/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-json/default.nix b/pkgs/development/hare-third-party/hare-json/default.nix index b66f0df3acf9..d78b384cb94b 100644 --- a/pkgs/development/hare-third-party/hare-json/default.nix +++ b/pkgs/development/hare-third-party/hare-json/default.nix @@ -1,6 +1,6 @@ { fetchFromSourcehut, - hare, + hareHook, harec, lib, stdenv, @@ -17,12 +17,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-Sx+RBiLhR3ftP89AwinVlBg0u0HX4GVP7TLmuofgC9s="; }; - nativeBuildInputs = [ hare ]; + nativeBuildInputs = [ hareHook ]; - makeFlags = [ - "HARECACHE=.harecache" - "PREFIX=${builtins.placeholder "out"}" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; doCheck = true; From 87168b4bab02a9599a2d49211e800c7815f26e75 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:04:51 -0300 Subject: [PATCH 074/121] hareThirdParty.hare-ev: format with nixfmt-rfc-style --- .../hare-third-party/hare-ev/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-ev/default.nix b/pkgs/development/hare-third-party/hare-ev/default.nix index ecde53882347..41c9016c2d13 100644 --- a/pkgs/development/hare-third-party/hare-ev/default.nix +++ b/pkgs/development/hare-third-party/hare-ev/default.nix @@ -1,8 +1,9 @@ -{ stdenv -, lib -, fetchFromSourcehut -, hare -, unstableGitUpdater +{ + fetchFromSourcehut, + hare, + lib, + stdenv, + unstableGitUpdater, }: stdenv.mkDerivation { @@ -16,9 +17,7 @@ stdenv.mkDerivation { hash = "sha256-SXExwDZKlW/2XYzmJUhkLWj6NF/znrv3vY9V0mD5iFQ="; }; - nativeCheckInputs = [ - hare - ]; + nativeCheckInputs = [ hare ]; makeFlags = [ "HARECACHE=.harecache" From 03622fdd0198c54a5529dcd0f6022b641cdf23ac Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:06:10 -0300 Subject: [PATCH 075/121] hareThirdParty.hare-ev: make use of hareHook --- pkgs/development/hare-third-party/hare-ev/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-ev/default.nix b/pkgs/development/hare-third-party/hare-ev/default.nix index 41c9016c2d13..cb44606b2940 100644 --- a/pkgs/development/hare-third-party/hare-ev/default.nix +++ b/pkgs/development/hare-third-party/hare-ev/default.nix @@ -1,6 +1,6 @@ { fetchFromSourcehut, - hare, + hareHook, lib, stdenv, unstableGitUpdater, @@ -17,12 +17,9 @@ stdenv.mkDerivation { hash = "sha256-SXExwDZKlW/2XYzmJUhkLWj6NF/znrv3vY9V0mD5iFQ="; }; - nativeCheckInputs = [ hare ]; + nativeCheckInputs = [ hareHook ]; - makeFlags = [ - "HARECACHE=.harecache" - "PREFIX=${builtins.placeholder "out"}" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; doCheck = true; @@ -33,6 +30,6 @@ stdenv.mkDerivation { homepage = "https://sr.ht/~sircmpwn/hare-ev"; license = licenses.mpl20; maintainers = with maintainers; [ colinsane ]; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; } From 8e0140c6767684daa011af0dcd9a36ae5a73a5d2 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:14:57 -0300 Subject: [PATCH 076/121] bonsai: format with nixfmt-rfc-style --- pkgs/by-name/bo/bonsai/package.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/bo/bonsai/package.nix b/pkgs/by-name/bo/bonsai/package.nix index 6c5d9adb78b5..645b2598de00 100644 --- a/pkgs/by-name/bo/bonsai/package.nix +++ b/pkgs/by-name/bo/bonsai/package.nix @@ -1,9 +1,10 @@ -{ stdenv -, lib -, fetchFromSourcehut -, gitUpdater -, hare -, hareThirdParty +{ + stdenv, + lib, + fetchFromSourcehut, + gitUpdater, + hare, + hareThirdParty, }: stdenv.mkDerivation (finalAttrs: { @@ -39,9 +40,7 @@ stdenv.mkDerivation (finalAttrs: { --replace 'hare test' 'hare test $(HAREFLAGS)' ''; - passthru.updateScript = gitUpdater { - rev-prefix = "v"; - }; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { description = "Finite State Machine structured as a tree"; From d2cef6437cefd5ea75aba26fd1caaea2807e0a62 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:25:45 -0300 Subject: [PATCH 077/121] bonsai: make use of hareHook --- pkgs/by-name/bo/bonsai/package.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/bo/bonsai/package.nix b/pkgs/by-name/bo/bonsai/package.nix index 645b2598de00..98b19be7e6fc 100644 --- a/pkgs/by-name/bo/bonsai/package.nix +++ b/pkgs/by-name/bo/bonsai/package.nix @@ -3,7 +3,7 @@ lib, fetchFromSourcehut, gitUpdater, - hare, + hareHook, hareThirdParty, }: @@ -19,27 +19,17 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ - hare + hareHook hareThirdParty.hare-ev hareThirdParty.hare-json ]; - makeFlags = [ - "PREFIX=${builtins.placeholder "out"}" - "HARECACHE=.harecache" - "HAREFLAGS=-qa${stdenv.hostPlatform.uname.processor}" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; enableParallelBuilding = true; doCheck = true; - postPatch = '' - substituteInPlace Makefile \ - --replace 'hare build' 'hare build $(HAREFLAGS)' \ - --replace 'hare test' 'hare test $(HAREFLAGS)' - ''; - passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { From 995664853d55e19e1b960060ceca3e3e57845b70 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:28:25 -0300 Subject: [PATCH 078/121] hareThirdParty.hare-compress: format with nixfmt-rfc-style --- .../hare-third-party/hare-compress/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-compress/default.nix b/pkgs/development/hare-third-party/hare-compress/default.nix index cc52e3e47eab..9cd508f52ced 100644 --- a/pkgs/development/hare-third-party/hare-compress/default.nix +++ b/pkgs/development/hare-third-party/hare-compress/default.nix @@ -1,8 +1,14 @@ -{ lib, stdenv, hare, harec, fetchFromSourcehut }: +{ + lib, + stdenv, + hare, + harec, + fetchFromSourcehut, +}: stdenv.mkDerivation (finalAttrs: { pname = "hare-compress"; - version = "unstable-2023-11-01"; + version = "0-unstable-2023-11-01"; src = fetchFromSourcehut { owner = "~sircmpwn"; @@ -25,7 +31,6 @@ stdenv.mkDerivation (finalAttrs: { description = "Compression algorithms for Hare"; license = with licenses; [ mpl20 ]; maintainers = with maintainers; [ starzation ]; - inherit (harec.meta) platforms badPlatforms; }; }) From 93b01fe232b13e306393965f657fc5b733050b43 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:29:54 -0300 Subject: [PATCH 079/121] hareThirdParty.hare-compress: make use of hareHook --- .../hare-third-party/hare-compress/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-compress/default.nix b/pkgs/development/hare-third-party/hare-compress/default.nix index 9cd508f52ced..d9065f3bcd2c 100644 --- a/pkgs/development/hare-third-party/hare-compress/default.nix +++ b/pkgs/development/hare-third-party/hare-compress/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, - hare, + hareHook, harec, fetchFromSourcehut, }: @@ -17,12 +17,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-sz8xPBZaUFye3HH4lkRnH52ye451e6seZXN/qvg87jE="; }; - nativeBuildInputs = [ hare ]; + nativeBuildInputs = [ hareHook ]; - makeFlags = [ - "HARECACHE=.harecache" - "PREFIX=${builtins.placeholder "out"}" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; doCheck = true; From 3653812becbe3719017c0c103edf9ff694f33313 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:26:34 -0300 Subject: [PATCH 080/121] hareThirdParty.hare-png: format with nixfmt-rfc-style --- .../development/hare-third-party/hare-png/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-png/default.nix b/pkgs/development/hare-third-party/hare-png/default.nix index 1218398f72b7..e6a15d740d3c 100644 --- a/pkgs/development/hare-third-party/hare-png/default.nix +++ b/pkgs/development/hare-third-party/hare-png/default.nix @@ -1,8 +1,14 @@ -{ lib, stdenv, hare, hareThirdParty, fetchFromSourcehut }: +{ + lib, + stdenv, + hare, + hareThirdParty, + fetchFromSourcehut, +}: stdenv.mkDerivation (finalAttrs: { pname = "hare-png"; - version = "unstable-2023-09-09"; + version = "0-unstable-2023-09-09"; src = fetchFromSourcehut { owner = "~sircmpwn"; @@ -26,7 +32,6 @@ stdenv.mkDerivation (finalAttrs: { description = "PNG implementation for Hare"; license = with licenses; [ mpl20 ]; maintainers = with maintainers; [ starzation ]; - inherit (hare.meta) platforms badPlatforms; }; }) From ea56874d33838f051061965fcf7f618712ec9689 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 16 May 2024 20:31:01 -0300 Subject: [PATCH 081/121] hareThirdParty.hare-png: make use of hareHook --- .../development/hare-third-party/hare-png/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-png/default.nix b/pkgs/development/hare-third-party/hare-png/default.nix index e6a15d740d3c..fba410eb8ffd 100644 --- a/pkgs/development/hare-third-party/hare-png/default.nix +++ b/pkgs/development/hare-third-party/hare-png/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, - hare, + hareHook, hareThirdParty, fetchFromSourcehut, }: @@ -17,13 +17,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-Q7xylsLVd/sp57kv6WzC7QHGN1xOsm7YEsYCbY/zi1Q="; }; - nativeBuildInputs = [ hare ]; + nativeBuildInputs = [ hareHook ]; propagatedBuildInputs = [ hareThirdParty.hare-compress ]; - makeFlags = [ - "PREFIX=${builtins.placeholder "out"}" - "HARECACHE=.harecache" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; doCheck = true; @@ -32,6 +29,6 @@ stdenv.mkDerivation (finalAttrs: { description = "PNG implementation for Hare"; license = with licenses; [ mpl20 ]; maintainers = with maintainers; [ starzation ]; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From 2cb996b599be1f769077604a123d23d9ae534c3e Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:01:07 -0300 Subject: [PATCH 082/121] hareThirdParty.hare-toml: format with nixfmt-rfc-style --- .../hare-third-party/hare-toml/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-toml/default.nix b/pkgs/development/hare-third-party/hare-toml/default.nix index ab760eb5fd24..5c6d206b415f 100644 --- a/pkgs/development/hare-third-party/hare-toml/default.nix +++ b/pkgs/development/hare-third-party/hare-toml/default.nix @@ -1,9 +1,10 @@ -{ stdenv -, hare -, scdoc -, lib -, fetchFromGitea -, nix-update-script +{ + fetchFromGitea, + hare, + lib, + nix-update-script, + scdoc, + stdenv, }: stdenv.mkDerivation (finalAttrs: { pname = "hare-toml"; From 676a48a5ea6aacefc45608b54e36085e304db7f9 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:01:58 -0300 Subject: [PATCH 083/121] hareThirdParty.hare-toml: make use of hareHook --- .../hare-third-party/hare-toml/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-toml/default.nix b/pkgs/development/hare-third-party/hare-toml/default.nix index 5c6d206b415f..963158a6fbf8 100644 --- a/pkgs/development/hare-third-party/hare-toml/default.nix +++ b/pkgs/development/hare-third-party/hare-toml/default.nix @@ -1,6 +1,6 @@ { fetchFromGitea, - hare, + hareHook, lib, nix-update-script, scdoc, @@ -20,13 +20,10 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ scdoc - hare + hareHook ]; - makeFlags = [ - "HARECACHE=.harecache" - "PREFIX=${builtins.placeholder "out"}" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; checkTarget = "check_local"; @@ -41,6 +38,6 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://codeberg.org/lunacb/hare-toml"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ onemoresuza ]; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From f3057406bf4a1247bb8a6bbf8f58eb38cc5f025d Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:07:07 -0300 Subject: [PATCH 084/121] hareThirdParty.hare-ssh: format with nixfmt-rfc-style --- pkgs/development/hare-third-party/hare-ssh/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-ssh/default.nix b/pkgs/development/hare-third-party/hare-ssh/default.nix index d25669f36643..87a34de0c32e 100644 --- a/pkgs/development/hare-third-party/hare-ssh/default.nix +++ b/pkgs/development/hare-third-party/hare-ssh/default.nix @@ -1,8 +1,13 @@ -{ lib, stdenv, hare, hareThirdParty, fetchFromSourcehut }: +{ + fetchFromSourcehut, + hare, + lib, + stdenv, +}: stdenv.mkDerivation (finalAttrs: { pname = "hare-ssh"; - version = "unstable-2023-11-16"; + version = "0-unstable-2023-11-16"; src = fetchFromSourcehut { owner = "~sircmpwn"; From 49ba155c4ae6417c80987f2d2d9c6a6e6949075e Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:07:53 -0300 Subject: [PATCH 085/121] hareThirdParty.hare-ssh: make use of hareHook --- .../development/hare-third-party/hare-ssh/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/hare-third-party/hare-ssh/default.nix b/pkgs/development/hare-third-party/hare-ssh/default.nix index 87a34de0c32e..bf6e043fb977 100644 --- a/pkgs/development/hare-third-party/hare-ssh/default.nix +++ b/pkgs/development/hare-third-party/hare-ssh/default.nix @@ -1,6 +1,6 @@ { fetchFromSourcehut, - hare, + hareHook, lib, stdenv, }: @@ -16,12 +16,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-I43TLPoImBsvkgV3hDy9dw0pXVt4ezINnxFtEV9P2/M="; }; - nativeBuildInputs = [ hare ]; + nativeBuildInputs = [ hareHook ]; - makeFlags = [ - "PREFIX=${builtins.placeholder "out"}" - "HARECACHE=.harecache" - ]; + makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; doCheck = true; @@ -31,6 +28,6 @@ stdenv.mkDerivation (finalAttrs: { license = with licenses; [ mpl20 ]; maintainers = with maintainers; [ patwid ]; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From 8679a88fc9de9fdf6563c8b34955440a33b68b45 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Mon, 27 May 2024 13:58:47 -0300 Subject: [PATCH 086/121] himitsu: format with nixfmt-rfc-style --- pkgs/tools/security/himitsu/default.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/security/himitsu/default.nix b/pkgs/tools/security/himitsu/default.nix index 3985a5c80a44..f3a10f66def6 100644 --- a/pkgs/tools/security/himitsu/default.nix +++ b/pkgs/tools/security/himitsu/default.nix @@ -1,19 +1,19 @@ -{ lib -, stdenv -, fetchFromSourcehut -, hare -, scdoc +{ + fetchFromSourcehut, + hare, + lib, + scdoc, + stdenv, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "himitsu"; version = "0.7"; src = fetchFromSourcehut { - name = pname + "-src"; owner = "~sircmpwn"; - repo = pname; - rev = version; + repo = "himitsu"; + rev = finalAttrs.version; hash = "sha256-jDxQajc8Kyfihm8q3wCpA+WsbAkQEZerLckLQXNhTa8="; }; @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { export HARECACHE=$(mktemp -d) ''; - installFlags = [ "PREFIX=" "DESTDIR=$(out)" ]; + installFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; meta = with lib; { homepage = "https://himitsustore.org/"; @@ -35,4 +35,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ auchter ]; inherit (hare.meta) platforms badPlatforms; }; -} +}) From 9167984ec0cb6c54f2bacb8909995614766c11d4 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Thu, 23 May 2024 20:17:13 -0300 Subject: [PATCH 087/121] himitsu: make use of hareHook --- pkgs/tools/security/himitsu/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/security/himitsu/default.nix b/pkgs/tools/security/himitsu/default.nix index f3a10f66def6..350a4112eefe 100644 --- a/pkgs/tools/security/himitsu/default.nix +++ b/pkgs/tools/security/himitsu/default.nix @@ -1,6 +1,6 @@ { fetchFromSourcehut, - hare, + hareHook, lib, scdoc, stdenv, @@ -18,14 +18,10 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ - hare + hareHook scdoc ]; - preConfigure = '' - export HARECACHE=$(mktemp -d) - ''; - installFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; meta = with lib; { @@ -33,6 +29,6 @@ stdenv.mkDerivation (finalAttrs: { description = "A secret storage manager"; license = licenses.gpl3Only; maintainers = with maintainers; [ auchter ]; - inherit (hare.meta) platforms badPlatforms; + inherit (hareHook.meta) platforms badPlatforms; }; }) From cfa58200cd9958eea5221bf5dfcf82778a0e0220 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Sat, 25 May 2024 11:34:14 -0300 Subject: [PATCH 088/121] doc/hare: init --- doc/languages-frameworks/hare.section.md | 53 ++++++++++++++++++++++++ doc/languages-frameworks/index.md | 1 + 2 files changed, 54 insertions(+) create mode 100644 doc/languages-frameworks/hare.section.md diff --git a/doc/languages-frameworks/hare.section.md b/doc/languages-frameworks/hare.section.md new file mode 100644 index 000000000000..0ae8abeba45c --- /dev/null +++ b/doc/languages-frameworks/hare.section.md @@ -0,0 +1,53 @@ +# Hare {#sec-language-hare} + +## Building Hare programs with `hareHook` {#ssec-language-hare} + +The `hareHook` package sets up the environment for building Hare programs by +doing the following: + +1. Setting the `HARECACHE`, `HAREPATH` and `NIX_HAREFLAGS` environment variables; +1. Propagating `harec`, `qbe` and two wrapper scripts for the hare binary. + +It is not a function as is the case for some other languages --- *e. g.*, Go or +Rust ---, but a package to be added to `nativeBuildInputs`. + +## Attributes of `hareHook` {#hareHook-attributes} + +The following attributes are accepted by `hareHook`: + +1. `hareBuildType`: Either `release` (default) or `debug`. It controls if the + `-R` flag is added to `NIX_HAREFLAGS`. + +## Example for `hareHook` {#ex-hareHook} + +```nix +{ + hareHook, + lib, + stdenv, +}: stdenv.mkDerivation { + pname = ""; + version = ""; + src = ""; + + nativeBuildInputs = [ hareHook ]; + + meta = { + description = ""; + inherit (hareHook) badPlatforms platforms; + }; +} +``` + +## Cross Compilation {#hareHook-cross-compilation} + +`hareHook` should handle cross compilation out of the box. This is the main +purpose of `NIX_HAREFLAGS`: In it, the `-a` flag is passed with the architecture +of the `hostPlatform`. + +However, manual intervention may be needed when a binary compiled by the build +process must be run for the build to complete --- *e. g.*, when using Hare's +`hare` module for code generation. + +In those cases, `hareHook` provides the `hare-native` script, which is a wrapper +around the hare binary for using the native (`buildPlatform`) toolchain. diff --git a/doc/languages-frameworks/index.md b/doc/languages-frameworks/index.md index 920e5e7bd431..e8fee9c45216 100644 --- a/doc/languages-frameworks/index.md +++ b/doc/languages-frameworks/index.md @@ -19,6 +19,7 @@ dotnet.section.md emscripten.section.md gnome.section.md go.section.md +hare.section.md haskell.section.md hy.section.md idris.section.md From a1f18b8e364cd933dded9771a5ec797cbb0441e0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 5 Jun 2024 14:07:47 +0000 Subject: [PATCH 089/121] go-ethereum: 1.14.3 -> 1.14.4 --- pkgs/applications/blockchains/go-ethereum/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/blockchains/go-ethereum/default.nix b/pkgs/applications/blockchains/go-ethereum/default.nix index 028232f6cc70..b9c47e499569 100644 --- a/pkgs/applications/blockchains/go-ethereum/default.nix +++ b/pkgs/applications/blockchains/go-ethereum/default.nix @@ -9,17 +9,17 @@ let in buildGoModule rec { pname = "go-ethereum"; - version = "1.14.3"; + version = "1.14.4"; src = fetchFromGitHub { owner = "ethereum"; repo = pname; rev = "v${version}"; - sha256 = "sha256-h2i/q4gfvqO8SgFxjoIhm4y0icpt+qe0Tq+3W6Ld8KM="; + sha256 = "sha256-qjzwIyzuZxmz/72TylHsnofLIF3Jr7qjC1gy7NcP+KI="; }; proxyVendor = true; - vendorHash = "sha256-ugoRsxzJjPOS5yPhwqXhMPuThvyqCWvZD7PBnrkm0sQ="; + vendorHash = "sha256-vzxtoLlD1RjmKBpMPqcH/AAzk2l/NifpRl4Sp4qBYLg="; doCheck = false; From a4b06d7f82e29ea2dce296c03775f8cccb02e562 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 3 Jun 2024 15:01:58 +0200 Subject: [PATCH 090/121] python311Packages.tinygrad: 0.8.0 -> 0.9.0 Diff: https://github.com/tinygrad/tinygrad/compare/refs/tags/v0.8.0...v0.9.0 Changelog: https://github.com/tinygrad/tinygrad/releases/tag/v0.9.0 --- .../python-modules/tinygrad/default.nix | 160 +++++++++++++----- .../tinygrad/fix-dlopen-cuda.patch | 32 ++++ 2 files changed, 146 insertions(+), 46 deletions(-) create mode 100644 pkgs/development/python-modules/tinygrad/fix-dlopen-cuda.patch diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index 82a57f7d7f08..760b29c1adfc 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -1,12 +1,25 @@ { lib, + config, buildPythonPackage, fetchFromGitHub, + substituteAll, + addDriverRunpath, + cudaSupport ? config.cudaSupport, + rocmSupport ? config.rocmSupport, + cudaPackages, + ocl-icd, + stdenv, + rocmPackages, + # build-system setuptools, wheel, - gpuctypes, + # dependencies numpy, tqdm, + # nativeCheckInputs + clang, + hexdump, hypothesis, librosa, onnx, @@ -22,30 +35,67 @@ buildPythonPackage rec { pname = "tinygrad"; - version = "0.8.0"; + version = "0.9.0"; pyproject = true; src = fetchFromGitHub { owner = "tinygrad"; repo = "tinygrad"; rev = "refs/tags/v${version}"; - hash = "sha256-QAccZ79qUbe27yUykIf22WdkxYUlOffnMlShakKfp60="; + hash = "sha256-opBxciETZruZjHqz/3vO7rogzjvVJKItulIiok/Zs2Y="; }; - nativeBuildInputs = [ + patches = [ + (substituteAll { + src = ./fix-dlopen-cuda.patch; + inherit (addDriverRunpath) driverLink; + libnvrtc = + if cudaSupport then + "${lib.getLib cudaPackages.cuda_nvrtc}/lib/libnvrtc.so" + else + "Please import nixpkgs with `config.cudaSupport = true`"; + }) + ]; + + postPatch = + '' + substituteInPlace tinygrad/runtime/autogen/opencl.py \ + --replace-fail "ctypes.util.find_library('OpenCL')" "'${ocl-icd}/lib/libOpenCL.so'" + '' + # hipGetDevicePropertiesR0600 is a symbol from rocm-6. We are currently at rocm-5. + # We are not sure that this works. Remove when rocm gets updated to version 6. + + lib.optionalString rocmSupport '' + substituteInPlace extra/hip_gpu_driver/hip_ioctl.py \ + --replace-fail "processor = platform.processor()" "processor = ${stdenv.hostPlatform.linuxArch}" + substituteInPlace tinygrad/runtime/autogen/hip.py \ + --replace-fail "/opt/rocm/lib/libamdhip64.so" "${rocmPackages.clr}/lib/libamdhip64.so" \ + --replace-fail "/opt/rocm/lib/libhiprtc.so" "${rocmPackages.clr}/lib/libhiprtc.so" \ + --replace-fail "hipGetDevicePropertiesR0600" "hipGetDeviceProperties" + + substituteInPlace tinygrad/runtime/autogen/comgr.py \ + --replace-fail "/opt/rocm/lib/libamd_comgr.so" "${rocmPackages.rocm-comgr}/lib/libamd_comgr.so" + ''; + + build-system = [ setuptools wheel ]; - propagatedBuildInputs = [ - gpuctypes - numpy - tqdm - ]; + dependencies = + [ + numpy + tqdm + ] + ++ lib.optionals stdenv.isDarwin [ + # pyobjc-framework-libdispatch + # pyobjc-framework-metal + ]; pythonImportsCheck = [ "tinygrad" ]; nativeCheckInputs = [ + clang + hexdump hypothesis librosa onnx @@ -63,44 +113,60 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = [ - # Require internet access - "test_benchmark_openpilot_model" - "test_bn_alone" - "test_bn_linear" - "test_bn_mnist" - "test_car" - "test_chicken" - "test_chicken_bigbatch" - "test_conv_mnist" - "testCopySHMtoDefault" - "test_data_parallel_resnet" - "test_e2e_big" - "test_fetch_small" - "test_huggingface_enet_safetensors" - "test_linear_mnist" - "test_load_convnext" - "test_load_enet" - "test_load_enet_alt" - "test_load_llama2bfloat" - "test_load_resnet" - "test_openpilot_model" - "test_resnet" - "test_shufflenet" - "test_transcribe_batch12" - "test_transcribe_batch21" - "test_transcribe_file1" - "test_transcribe_file2" - "test_transcribe_long" - "test_transcribe_long_no_batch" - "test_vgg7" - ]; + disabledTests = + [ + # Require internet access + "test_benchmark_openpilot_model" + "test_bn_alone" + "test_bn_linear" + "test_bn_mnist" + "test_car" + "test_chicken" + "test_chicken_bigbatch" + "test_conv_mnist" + "testCopySHMtoDefault" + "test_data_parallel_resnet" + "test_e2e_big" + "test_fetch_small" + "test_huggingface_enet_safetensors" + "test_linear_mnist" + "test_load_convnext" + "test_load_enet" + "test_load_enet_alt" + "test_load_llama2bfloat" + "test_load_resnet" + "test_openpilot_model" + "test_resnet" + "test_shufflenet" + "test_transcribe_batch12" + "test_transcribe_batch21" + "test_transcribe_file1" + "test_transcribe_file2" + "test_transcribe_long" + "test_transcribe_long_no_batch" + "test_vgg7" + ] + # Fail on aarch64-linux with AssertionError + ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [ + "test_casts_to" + "test_casts_to" + "test_int8_to_uint16_negative" + "test_casts_to" + "test_casts_to" + "test_casts_from" + "test_casts_to" + "test_int8" + "test_casts_to" + ]; - disabledTestPaths = [ - "test/extra/test_lr_scheduler.py" - "test/models/test_mnist.py" - "test/models/test_real_world.py" - ]; + disabledTestPaths = + [ + # Require internet access + "test/models/test_mnist.py" + "test/models/test_real_world.py" + "test/testextra/test_lr_scheduler.py" + ] + ++ lib.optionals (!rocmSupport) [ "extra/hip_gpu_driver/" ]; meta = with lib; { description = "A simple and powerful neural network framework"; @@ -108,5 +174,7 @@ buildPythonPackage rec { changelog = "https://github.com/tinygrad/tinygrad/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ GaetanLepage ]; + # Requires unpackaged pyobjc-framework-libdispatch and pyobjc-framework-metal + broken = stdenv.isDarwin; }; } diff --git a/pkgs/development/python-modules/tinygrad/fix-dlopen-cuda.patch b/pkgs/development/python-modules/tinygrad/fix-dlopen-cuda.patch new file mode 100644 index 000000000000..6b77173b4ecc --- /dev/null +++ b/pkgs/development/python-modules/tinygrad/fix-dlopen-cuda.patch @@ -0,0 +1,32 @@ +diff --git a/tinygrad/runtime/autogen/cuda.py b/tinygrad/runtime/autogen/cuda.py +index 359083a9..3cd5f7be 100644 +--- a/tinygrad/runtime/autogen/cuda.py ++++ b/tinygrad/runtime/autogen/cuda.py +@@ -143,10 +143,25 @@ def char_pointer_cast(string, encoding='utf-8'): + return ctypes.cast(string, ctypes.POINTER(ctypes.c_char)) + + ++NAME_TO_PATHS = { ++ "libcuda.so": ["@driverLink@/lib/libcuda.so"], ++ "libnvrtc.so": ["@libnvrtc@"], ++} ++def _try_dlopen(name): ++ try: ++ return ctypes.CDLL(name) ++ except OSError: ++ pass ++ for candidate in NAME_TO_PATHS.get(name, []): ++ try: ++ return ctypes.CDLL(candidate) ++ except OSError: ++ pass ++ raise RuntimeError(f"{name} not found") + + _libraries = {} +-_libraries['libcuda.so'] = ctypes.CDLL(ctypes.util.find_library('cuda')) +-_libraries['libnvrtc.so'] = ctypes.CDLL(ctypes.util.find_library('nvrtc')) ++_libraries['libcuda.so'] = _try_dlopen('libcuda.so') ++_libraries['libnvrtc.so'] = _try_dlopen('libnvrtc.so') + + + cuuint32_t = ctypes.c_uint32 From a8062e526cb6448373b95028c4f91800ba108662 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 5 Jun 2024 23:08:07 +0100 Subject: [PATCH 091/121] doc/stdenv: hardening flags: add note on conditional support for some flags --- doc/stdenv/stdenv.chapter.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index f3cdb1f2dc0c..368e7be93825 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1558,6 +1558,8 @@ Both parameters take a list of flags as strings. The special `"all"` flag can be For more in-depth information on these hardening flags and hardening in general, refer to the [Debian Wiki](https://wiki.debian.org/Hardening), [Ubuntu Wiki](https://wiki.ubuntu.com/Security/Features), [Gentoo Wiki](https://wiki.gentoo.org/wiki/Project:Hardened), and the [Arch Wiki](https://wiki.archlinux.org/title/Security). +Note that support for some hardening flags varies by compiler, CPU architecture, target OS and libc. Combinations of these that don't support a particular hardening flag will silently ignore attempts to enable it. To see exactly which hardening flags are being employed in any invocation, the `NIX_DEBUG` environment variable can be used. + ### Hardening flags enabled by default {#sec-hardening-flags-enabled-by-default} The following flags are enabled by default and might require disabling with `hardeningDisable` if the program to package is incompatible. From 65cc6d3cf151552de1a5ed2868daea3c8e4aa5bc Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 5 Jun 2024 23:08:47 +0100 Subject: [PATCH 092/121] doc/stdenv: hardening flags: add section on fortify3 --- doc/stdenv/stdenv.chapter.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 368e7be93825..a331ceb689ec 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1609,6 +1609,16 @@ installwatch.c:3751:5: error: conflicting types for '__open_2' fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments ``` +Disabling `fortify` implies disablement of `fortify3` + +#### `fortify3` {#fortify3} + +Adds the `-O2 -D_FORTIFY_SOURCE=3` compiler options. This expands the cases that can be protected by fortify-checks to include some situations with dynamic-length buffers whose length can be inferred at runtime using compiler hints. + +Enabling this flag implies enablement of `fortify`. Disabling this flag does not imply disablement of `fortify`. + +This flag can sometimes conflict with a build-system's own attempts at enabling fortify support and result in errors complaining about `redefinition of _FORTIFY_SOURCE`. + #### `pic` {#pic} Adds the `-fPIC` compiler options. This options adds support for position independent code in shared libraries and thus making ASLR possible. From 39f39b5568c34b2b40681cdb021c04cd6ae3bbef Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 5 Jun 2024 23:09:12 +0100 Subject: [PATCH 093/121] doc/stdenv: hardening flags: add section on zerocallusedregs --- doc/stdenv/stdenv.chapter.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index a331ceb689ec..93ddeff7d016 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1667,6 +1667,10 @@ Adds the `-fPIE` compiler and `-pie` linker options. Position Independent Execut Static libraries need to be compiled with `-fPIE` so that executables can link them in with the `-pie` linker option. If the libraries lack `-fPIE`, you will get the error `recompile with -fPIE`. +#### `zerocallusedregs` {#zerocallusedregs} + +Adds the `-fzero-call-used-regs=used-gpr` compiler option. This causes the general-purpose registers that an architecture's calling convention considers "call-used" to be zeroed on return from the function. This can make it harder for attackers to construct useful ROP gadgets and also reduces the chance of data leakage from a function call. + [^footnote-stdenv-ignored-build-platform]: The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency: As a general programming principle, dependencies are always *specified* as interfaces, not concrete implementation. [^footnote-stdenv-native-dependencies-in-path]: Currently, this means for native builds all dependencies are put on the `PATH`. But in the future that may not be the case for sake of matching cross: the platforms would be assumed to be unique for native and cross builds alike, so only the `depsBuild*` and `nativeBuildInputs` would be added to the `PATH`. [^footnote-stdenv-propagated-dependencies]: Nix itself already takes a package’s transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like [setup hooks](#ssec-setup-hooks) also are run as if it were a propagated dependency. From 062f1fa52a8aaf303889bda44c57b4fdba2911b1 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 5 Jun 2024 23:09:30 +0100 Subject: [PATCH 094/121] doc/stdenv: hardening flags: add section on trivialautovarinit --- doc/stdenv/stdenv.chapter.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 93ddeff7d016..f2bc7f71de38 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1671,6 +1671,12 @@ If the libraries lack `-fPIE`, you will get the error `recompile with -fPIE`. Adds the `-fzero-call-used-regs=used-gpr` compiler option. This causes the general-purpose registers that an architecture's calling convention considers "call-used" to be zeroed on return from the function. This can make it harder for attackers to construct useful ROP gadgets and also reduces the chance of data leakage from a function call. +#### `trivialautovarinit` {#trivialautovarinit} + +Adds the `-ftrivial-auto-var-init=pattern` compiler option. This causes "trivially-initializable" uninitialized stack variables to be forcibly initialized with a nonzero value that is likely to cause a crash (and therefore be noticed). Uninitialized variables generally take on their values based on fragments of previous program state, and attackers can carefully manipulate that state to craft malicious initial values for these variables. + +Use of this flag is controversial as it can prevent tools that detect uninitialized variable use (such as valgrind) from operating correctly. + [^footnote-stdenv-ignored-build-platform]: The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency: As a general programming principle, dependencies are always *specified* as interfaces, not concrete implementation. [^footnote-stdenv-native-dependencies-in-path]: Currently, this means for native builds all dependencies are put on the `PATH`. But in the future that may not be the case for sake of matching cross: the platforms would be assumed to be unique for native and cross builds alike, so only the `depsBuild*` and `nativeBuildInputs` would be added to the `PATH`. [^footnote-stdenv-propagated-dependencies]: Nix itself already takes a package’s transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like [setup hooks](#ssec-setup-hooks) also are run as if it were a propagated dependency. From 68bc61e916386c0817205271952e2684ee4d158a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 6 Jun 2024 00:26:22 +0200 Subject: [PATCH 095/121] python311Packages.jupyter-nbextensions-configurator: 0.6.3 -> 0.6.4 Diff: https://github.com/jupyter-contrib/jupyter_nbextensions_configurator/compare/refs/tags/0.6.3...0.6.4 Changelog: https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/releases/tag/0.6.4 --- .../default.nix | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix index 5b1bed18d96e..b824fd000970 100644 --- a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, jupyter-contrib-core, jupyter-core, jupyter-server, @@ -16,26 +15,17 @@ buildPythonPackage rec { pname = "jupyter-nbextensions-configurator"; - version = "0.6.3"; - format = "setuptools"; + version = "0.6.4"; + pyproject = true; src = fetchFromGitHub { owner = "jupyter-contrib"; repo = "jupyter_nbextensions_configurator"; rev = "refs/tags/${version}"; - hash = "sha256-ovKYHATRAC5a5qTMv32ohU2gJd15/fRKXa5HI0zGp/0="; + hash = "sha256-U4M6pGV/DdE+DOVMVaoBXOhfRERt+yUa+gADgqRRLn4="; }; - patches = [ - # https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/pull/166 - (fetchpatch { - name = "notebook-v7-compat.patch"; - url = "https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/commit/a600cef9222ca0c61a6912eb29d8fa0323409705.patch"; - hash = "sha256-Rt9r5ZOgnhBcs18+ET5+k0/t980I2DiVN8oHkGLp0iw="; - }) - ]; - - propagatedBuildInputs = [ + dependencies = [ jupyter-contrib-core jupyter-core jupyter-server @@ -59,11 +49,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "jupyter_nbextensions_configurator" ]; - meta = with lib; { + meta = { description = "A jupyter notebook serverextension providing config interfaces for nbextensions"; mainProgram = "jupyter-nbextensions_configurator"; homepage = "https://github.com/jupyter-contrib/jupyter_nbextensions_configurator"; - license = licenses.bsd3; - maintainers = with maintainers; [ GaetanLepage ]; + changelog = "https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/releases/tag/${version}"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; } From db426fa5357a2d102e46d6136298f908a57d7905 Mon Sep 17 00:00:00 2001 From: Andy3153 Date: Thu, 30 May 2024 14:55:48 +0300 Subject: [PATCH 096/121] maintainers: add Andy3153 --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 93330c1434f4..ec43ec7e3566 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1310,6 +1310,13 @@ githubId = 29887; name = "Andrew Smith"; }; + Andy3153 = { + name = "Andrei Dobrete"; + email = "andy3153@protonmail.com"; + matrix = "@andy3153:matrix.org"; + github = "Andy3153"; + githubId = 53472302; + }; andys8 = { github = "andys8"; githubId = 13085980; From 923ea8730c50942be208626421a300aee6411396 Mon Sep 17 00:00:00 2001 From: Andy3153 Date: Mon, 20 May 2024 21:18:18 +0300 Subject: [PATCH 097/121] hunspellDicts.ro-ro: init at 3.3.10 add a Romanian dictionary for Hunspell from rospell on Sourceforge --- .../libraries/hunspell/dictionaries.nix | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/development/libraries/hunspell/dictionaries.nix b/pkgs/development/libraries/hunspell/dictionaries.nix index 7bdc1980e672..6b6640ddfb71 100644 --- a/pkgs/development/libraries/hunspell/dictionaries.nix +++ b/pkgs/development/libraries/hunspell/dictionaries.nix @@ -968,6 +968,35 @@ rec { }; }; + /* ROMANIAN */ + ro_RO = ro-ro; + ro-ro = mkDict rec { + pname = "hunspell-dict-ro-ro"; + version = "3.3.10"; + shortName = "ro-ro"; + dictFileName = "ro_RO"; + fileName = "${dictFileName}.${version}.zip"; + shortDescription = "Romanian (Romania)"; + readmeFile = "README"; + + src = fetchurl { + url = "https://downloads.sourceforge.net/rospell/${fileName}"; + hash = "sha256-fxKNZOoGyeZxHDCxGMCv7vsBTY8zyS2szfRVq6LQRRk="; + }; + + nativeBuildInputs = [ unzip ]; + unpackCmd = '' + unzip $src ${dictFileName}.aff ${dictFileName}.dic ${readmeFile} -d ${dictFileName} + ''; + + meta = { + description = "Hunspell dictionary for ${shortDescription} from rospell"; + homepage = "https://sourceforge.net/projects/rospell/"; + license = with lib.licenses; [ gpl2Only ]; + maintainers = with lib.maintainers; [ Andy3153 ]; + }; + }; + /* Turkish */ tr_TR = tr-tr; tr-tr = mkDict rec { From 9fbb1ba0c0ca5c1e4c026dd685d6f945b8038835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 4 Jun 2024 00:21:26 +0200 Subject: [PATCH 098/121] massdns: init at version 1.1.0 --- pkgs/by-name/ma/massdns/package.nix | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ma/massdns/package.nix diff --git a/pkgs/by-name/ma/massdns/package.nix b/pkgs/by-name/ma/massdns/package.nix new file mode 100644 index 000000000000..9b90c674adb7 --- /dev/null +++ b/pkgs/by-name/ma/massdns/package.nix @@ -0,0 +1,36 @@ +{ stdenv +, lib +, fetchFromGitHub +, nix-update-script +}: +stdenv.mkDerivation rec { + pname = "massdns"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "blechschmidt"; + repo = "massdns"; + rev = "v${version}"; + hash = "sha256-hrnAg5ErPt93RV4zobRGVtcKt4aM2tC52r08T7+vRGc="; + }; + + makeFlags = [ + "PREFIX=$(out)" + "PROJECT_FLAGS=-DMASSDNS_REVISION='\"v${version}\"'" + ]; + buildFlags = if stdenv.isLinux then "all" else "nolinux"; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Resolve large amounts of domain names"; + homepage = "https://github.com/blechschmidt/massdns"; + changelog = "https://github.com/blechschmidt/massdns/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ geoffreyfrogeye ]; + mainProgram = "massdns"; + platforms = platforms.all; + # error: use of undeclared identifier 'MSG_NOSIGNAL' + badPlatforms = platforms.darwin; + }; +} From a54c5c85260fbcb3d2af50a3fe3c6c3ca3bf2760 Mon Sep 17 00:00:00 2001 From: Yannick Markus Date: Thu, 6 Jun 2024 09:50:51 +0200 Subject: [PATCH 099/121] bookstack: 24.02.3 -> 24.05.1 Diff: https://github.com/BookStackApp/BookStack/compare/v24.02.3...v24.05.1 Changelog: https://www.bookstackapp.com/blog/bookstack-release-v24-05/ & https://www.bookstackapp.com/blog/bookstack-release-v24-05-1/ --- pkgs/servers/web-apps/bookstack/default.nix | 4 +- .../web-apps/bookstack/php-packages.nix | 352 +++++++++--------- 2 files changed, 183 insertions(+), 173 deletions(-) diff --git a/pkgs/servers/web-apps/bookstack/default.nix b/pkgs/servers/web-apps/bookstack/default.nix index c9ef56c67582..26953d5f3788 100644 --- a/pkgs/servers/web-apps/bookstack/default.nix +++ b/pkgs/servers/web-apps/bookstack/default.nix @@ -16,13 +16,13 @@ let in package.override rec { pname = "bookstack"; - version = "24.02.3"; + version = "24.05.1"; src = fetchFromGitHub { owner = "bookstackapp"; repo = pname; rev = "v${version}"; - sha256 = "sha256-+8J7dB666KZSJbvnmJl/PivtMQ6Hlz3AAy6E1xpRRmU="; + sha256 = "1m20435sp4n3dg7am4lh73yw1wdmnsf15wdl554lrklhg7f21s0w"; }; meta = with lib; { diff --git a/pkgs/servers/web-apps/bookstack/php-packages.nix b/pkgs/servers/web-apps/bookstack/php-packages.nix index 7c343011726c..a154144fc16d 100644 --- a/pkgs/servers/web-apps/bookstack/php-packages.nix +++ b/pkgs/servers/web-apps/bookstack/php-packages.nix @@ -5,20 +5,20 @@ let "aws/aws-crt-php" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "aws-aws-crt-php-eb0c6e4e142224a10b08f49ebf87f32611d162b2"; + name = "aws-aws-crt-php-0ea1f04ec5aa9f049f97e012d1ed63b76834a31b"; src = fetchurl { - url = "https://api.github.com/repos/awslabs/aws-crt-php/zipball/eb0c6e4e142224a10b08f49ebf87f32611d162b2"; - sha256 = "10fnazz3gv51i6dngrc6hbcmzwrvl6mmd2z44rrdbzz3ry8v3vc9"; + url = "https://api.github.com/repos/awslabs/aws-crt-php/zipball/0ea1f04ec5aa9f049f97e012d1ed63b76834a31b"; + sha256 = "1xx5yhq99z752pagij5djja4812p4s711188j8qk8wi0dl7331zm"; }; }; }; "aws/aws-sdk-php" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "aws-aws-sdk-php-957ccef631684d612d01ced2fa3b0506f2ec78c3"; + name = "aws-aws-sdk-php-cc79f16e1a1bd3feee421401ba2f21915abfdf91"; src = fetchurl { - url = "https://api.github.com/repos/aws/aws-sdk-php/zipball/957ccef631684d612d01ced2fa3b0506f2ec78c3"; - sha256 = "1chckiccr061c063wwf502d545wji4p5g6ak6z6dl36jjkrip7v4"; + url = "https://api.github.com/repos/aws/aws-sdk-php/zipball/cc79f16e1a1bd3feee421401ba2f21915abfdf91"; + sha256 = "1dg6g31hwn8b0drsvg077im9bnp5x0zhqsdwck6qq02kzyimjsy2"; }; }; }; @@ -32,33 +32,13 @@ let }; }; }; - "barryvdh/laravel-dompdf" = { - targetDir = ""; - src = composerEnv.buildZipPackage { - name = "barryvdh-laravel-dompdf-9843d2be423670fb434f4c978b3c0f4dd92c87a6"; - src = fetchurl { - url = "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/9843d2be423670fb434f4c978b3c0f4dd92c87a6"; - sha256 = "1b7j7rnba50ibsnjzxz3bcnpcii51qrin5p0ivi0bzm57xhvns9s"; - }; - }; - }; - "barryvdh/laravel-snappy" = { - targetDir = ""; - src = composerEnv.buildZipPackage { - name = "barryvdh-laravel-snappy-940eec2d99b89cbc9bea2f493cf068382962a485"; - src = fetchurl { - url = "https://api.github.com/repos/barryvdh/laravel-snappy/zipball/940eec2d99b89cbc9bea2f493cf068382962a485"; - sha256 = "0i168sq1sah83xw3xfrilnpja789q79zvhjfgfcszd10g7y444gc"; - }; - }; - }; "brick/math" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "brick-math-0ad82ce168c82ba30d1c01ec86116ab52f589478"; + name = "brick-math-f510c0a40911935b77b86859eb5223d58d660df1"; src = fetchurl { - url = "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478"; - sha256 = "04kqy1hqvp4634njjjmhrc2g828d69sk6q3c55bpqnnmsqf154yb"; + url = "https://api.github.com/repos/brick/math/zipball/f510c0a40911935b77b86859eb5223d58d660df1"; + sha256 = "1cgj6qfjjl76jyjxxkdmnzl0sc8y3pkvcw91lpjdlp4jnqlq31by"; }; }; }; @@ -105,10 +85,10 @@ let "doctrine/dbal" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "doctrine-dbal-a19a1d05ca211f41089dffcc387733a6875196cb"; + name = "doctrine-dbal-b05e48a745f722801f55408d0dbd8003b403dbbd"; src = fetchurl { - url = "https://api.github.com/repos/doctrine/dbal/zipball/a19a1d05ca211f41089dffcc387733a6875196cb"; - sha256 = "11lcmw8pmgfp7wmn4miainyl2c060s4igq4g94azxl1v5bqaypis"; + url = "https://api.github.com/repos/doctrine/dbal/zipball/b05e48a745f722801f55408d0dbd8003b403dbbd"; + sha256 = "0bca75y1wadpab0ns31s3wbvvxsq108i8jfyrh4xnifl56wb8pvh"; }; }; }; @@ -125,10 +105,10 @@ let "doctrine/event-manager" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "doctrine-event-manager-95aa4cb529f1e96576f3fda9f5705ada4056a520"; + name = "doctrine-event-manager-750671534e0241a7c50ea5b43f67e23eb5c96f32"; src = fetchurl { - url = "https://api.github.com/repos/doctrine/event-manager/zipball/95aa4cb529f1e96576f3fda9f5705ada4056a520"; - sha256 = "0xi2s28jmmvrndg1yd0r5s10d9a0q6j2dxdbazvcbws9waf0yrvj"; + url = "https://api.github.com/repos/doctrine/event-manager/zipball/750671534e0241a7c50ea5b43f67e23eb5c96f32"; + sha256 = "1inhh3k8ai8d6rhx5xsbdx0ifc3yjjfrahi0cy1npz9nx3383cfh"; }; }; }; @@ -145,20 +125,20 @@ let "doctrine/lexer" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "doctrine-lexer-861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6"; + name = "doctrine-lexer-31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd"; src = fetchurl { - url = "https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6"; - sha256 = "0q25i1d6nqkrj4yc35my6b51kn2nksddhddm13vkc7ilkkn20pg7"; + url = "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd"; + sha256 = "1yaznxpd1d8h3ij262hx946nqvhzsgjmafdgnxbaiarc6nslww25"; }; }; }; "dompdf/dompdf" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "dompdf-dompdf-093f2d9739cec57428e39ddadedfd4f3ae862c0f"; + name = "dompdf-dompdf-c20247574601700e1f7c8dab39310fca1964dc52"; src = fetchurl { - url = "https://api.github.com/repos/dompdf/dompdf/zipball/093f2d9739cec57428e39ddadedfd4f3ae862c0f"; - sha256 = "0852xp3qfg40byhv7z4bma9bpiyrc3yral3p9xhk8g62jjddvayn"; + url = "https://api.github.com/repos/dompdf/dompdf/zipball/c20247574601700e1f7c8dab39310fca1964dc52"; + sha256 = "01r93dlglgvd1dnpq0jpjajr0vwkv56zyi9xafw423lyg2ghn3n0"; }; }; }; @@ -175,10 +155,20 @@ let "egulias/email-validator" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "egulias-email-validator-e5997fa97e8790cdae03a9cbd5e78e45e3c7bda7"; + name = "egulias-email-validator-ebaaf5be6c0286928352e054f2d5125608e5405e"; src = fetchurl { - url = "https://api.github.com/repos/egulias/EmailValidator/zipball/e5997fa97e8790cdae03a9cbd5e78e45e3c7bda7"; - sha256 = "16s7k5ck8bzk83xfy46fikjyj4jywalriqba8jvd5ngd177s2mw5"; + url = "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e"; + sha256 = "02n4sh0gywqzsl46n9q8hqqgiyva2gj4lxdz9fw4pvhkm1s27wd6"; + }; + }; + }; + "firebase/php-jwt" = { + targetDir = ""; + src = composerEnv.buildZipPackage { + name = "firebase-php-jwt-500501c2ce893c824c801da135d02661199f60c5"; + src = fetchurl { + url = "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5"; + sha256 = "1dnn4r2yrckai5f88riix9ws615007x6x9i6j7621kmy5a05xaiq"; }; }; }; @@ -242,33 +232,53 @@ let }; }; }; + "intervention/gif" = { + targetDir = ""; + src = composerEnv.buildZipPackage { + name = "intervention-gif-3a2b5f8a8856e8877cdab5c47e51aab2d4cb23a3"; + src = fetchurl { + url = "https://api.github.com/repos/Intervention/gif/zipball/3a2b5f8a8856e8877cdab5c47e51aab2d4cb23a3"; + sha256 = "1b2ljm2pi03p0jzkvl2da2bqv60xniyasgz0wv3xi9qjxv7abbx6"; + }; + }; + }; "intervention/image" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "intervention-image-04be355f8d6734c826045d02a1079ad658322dad"; + name = "intervention-image-193324ec88bc5ad4039e57ce9b926ae28dfde813"; src = fetchurl { - url = "https://api.github.com/repos/Intervention/image/zipball/04be355f8d6734c826045d02a1079ad658322dad"; - sha256 = "1cbg43hm2jgwb7gm1r9xcr4cpx8ng1zr93zx6shk9xhjlssnv0bx"; + url = "https://api.github.com/repos/Intervention/image/zipball/193324ec88bc5ad4039e57ce9b926ae28dfde813"; + sha256 = "18p2xgbvdzyx9wjid5iviyfx81k7za73b729ar3fyjd646x8niwi"; }; }; }; "knplabs/knp-snappy" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "knplabs-knp-snappy-3db13fe45d12a7bccb2b83f622e5a90f7e40b111"; + name = "knplabs-knp-snappy-98468898b50c09f26d56d905b79b0f52a2215da6"; src = fetchurl { - url = "https://api.github.com/repos/KnpLabs/snappy/zipball/3db13fe45d12a7bccb2b83f622e5a90f7e40b111"; - sha256 = "1l4nln4cg01ywv9lzi5srnm7jq4q1v0210j9sshq34vx8slll9di"; + url = "https://api.github.com/repos/KnpLabs/snappy/zipball/98468898b50c09f26d56d905b79b0f52a2215da6"; + sha256 = "158fsqrnqw0my381f8cfvy5savcvlmpazfbn8j5ds26mldv59csa"; }; }; }; "laravel/framework" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "laravel-framework-082345d76fc6a55b649572efe10b11b03e279d24"; + name = "laravel-framework-91e2b9e218afa4e5c377510faa11957042831ba3"; src = fetchurl { - url = "https://api.github.com/repos/laravel/framework/zipball/082345d76fc6a55b649572efe10b11b03e279d24"; - sha256 = "0gzpj0cgnqncxd4h196k5mvv169xzmy8c6bdwm5pkdy0f2hnb6lq"; + url = "https://api.github.com/repos/laravel/framework/zipball/91e2b9e218afa4e5c377510faa11957042831ba3"; + sha256 = "05rzgsvqlyjbpwx69vq5vlk4fqwi7vxs5qacizyqnrihck9laahs"; + }; + }; + }; + "laravel/prompts" = { + targetDir = ""; + src = composerEnv.buildZipPackage { + name = "laravel-prompts-23ea808e8a145653e0ab29e30d4385e49f40a920"; + src = fetchurl { + url = "https://api.github.com/repos/laravel/prompts/zipball/23ea808e8a145653e0ab29e30d4385e49f40a920"; + sha256 = "0ysyqn1xivinv4lrqd1vifk50ccrxfjyv7ndsh433hb2961n3r52"; }; }; }; @@ -285,10 +295,10 @@ let "laravel/socialite" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "laravel-socialite-7dae1b072573809f32ab6dcf4aebb57c8b3e8acf"; + name = "laravel-socialite-c7b0193a3753a29aff8ce80aa2f511917e6ed68a"; src = fetchurl { - url = "https://api.github.com/repos/laravel/socialite/zipball/7dae1b072573809f32ab6dcf4aebb57c8b3e8acf"; - sha256 = "1jd65mk5hww4iq6xkky1dkmz8c06czlb466s4svg4vf1xhb9dxqj"; + url = "https://api.github.com/repos/laravel/socialite/zipball/c7b0193a3753a29aff8ce80aa2f511917e6ed68a"; + sha256 = "0aym6n2ljqwfxrm5s3h7q98xggnblhk5q4whn46wyyvclqysj2bs"; }; }; }; @@ -325,30 +335,30 @@ let "league/flysystem" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "league-flysystem-b25a361508c407563b34fac6f64a8a17a8819675"; + name = "league-flysystem-4729745b1ab737908c7d055148c9a6b3e959832f"; src = fetchurl { - url = "https://api.github.com/repos/thephpleague/flysystem/zipball/b25a361508c407563b34fac6f64a8a17a8819675"; - sha256 = "07fd3nqvs9wnl7wwlii3aaalpdldgf6agk2l1ihl3w253qyg8ynn"; + url = "https://api.github.com/repos/thephpleague/flysystem/zipball/4729745b1ab737908c7d055148c9a6b3e959832f"; + sha256 = "13kf4l7mp4mifm09av0w7vfcwnmpvjpsic836xh8a8rlfczgjym2"; }; }; }; "league/flysystem-aws-s3-v3" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "league-flysystem-aws-s3-v3-809474e37b7fb1d1f8bcc0f8a98bc1cae99aa513"; + name = "league-flysystem-aws-s3-v3-3e6ce2f972f1470db779f04d29c289dcd2c32837"; src = fetchurl { - url = "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/809474e37b7fb1d1f8bcc0f8a98bc1cae99aa513"; - sha256 = "0iv1n4y6w4pa2051wxvnkcap08jb86qgfx1hb6w8z5rngg67nz4d"; + url = "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/3e6ce2f972f1470db779f04d29c289dcd2c32837"; + sha256 = "01l7nbdmrh1vb59m7xhc1kjfz6xrp5871ghrb6c1anwcsh20l9r3"; }; }; }; "league/flysystem-local" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "league-flysystem-local-b884d2bf9b53bb4804a56d2df4902bb51e253f00"; + name = "league-flysystem-local-61a6a90d6e999e4ddd9ce5adb356de0939060b92"; src = fetchurl { - url = "https://api.github.com/repos/thephpleague/flysystem-local/zipball/b884d2bf9b53bb4804a56d2df4902bb51e253f00"; - sha256 = "1ggpc08rdaqk2wxkvklfi6l7nqzd6ch2dgf9icr1shfiv09l0mp6"; + url = "https://api.github.com/repos/thephpleague/flysystem-local/zipball/61a6a90d6e999e4ddd9ce5adb356de0939060b92"; + sha256 = "0mkcqhmxgq5pwbfzqc26z06384v7plva5s71pqyqdaayb1hlyg1f"; }; }; }; @@ -395,20 +405,20 @@ let "masterminds/html5" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "masterminds-html5-f47dcf3c70c584de14f21143c55d9939631bc6cf"; + name = "masterminds-html5-f5ac2c0b0a2eefca70b2ce32a5809992227e75a6"; src = fetchurl { - url = "https://api.github.com/repos/Masterminds/html5-php/zipball/f47dcf3c70c584de14f21143c55d9939631bc6cf"; - sha256 = "1n2xiyxqmxk9g34wn1lg2yyivwg2ry8iqk8m7g2432gm97rmyb20"; + url = "https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6"; + sha256 = "1fbicmaw79rycpywbbxm2fs3lnmb1a7jvfx6d9sb6nvfhsy924fx"; }; }; }; "monolog/monolog" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "monolog-monolog-437cb3628f4cf6042cc10ae97fc2b8472e48ca1f"; + name = "monolog-monolog-4b18b21a5527a3d5ffdac2fd35d3ab25a9597654"; src = fetchurl { - url = "https://api.github.com/repos/Seldaek/monolog/zipball/437cb3628f4cf6042cc10ae97fc2b8472e48ca1f"; - sha256 = "02xaa057fj2bjf6g6zx80rb6ikcgn601ns50ml51b8yp48pjdla3"; + url = "https://api.github.com/repos/Seldaek/monolog/zipball/4b18b21a5527a3d5ffdac2fd35d3ab25a9597654"; + sha256 = "1k7ggaygbcm3ls9pkwm5qmf3a1b5i1bd953jy839km0lh4gz637s"; }; }; }; @@ -435,10 +445,10 @@ let "nette/schema" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "nette-schema-0462f0166e823aad657c9224d0f849ecac1ba10a"; + name = "nette-schema-a6d3a6d1f545f01ef38e60f375d1cf1f4de98188"; src = fetchurl { - url = "https://api.github.com/repos/nette/schema/zipball/0462f0166e823aad657c9224d0f849ecac1ba10a"; - sha256 = "0x2pz3mjnx78ndxm5532ld3kwzs9p43l4snk4vjbwnqiqgcpqwn7"; + url = "https://api.github.com/repos/nette/schema/zipball/a6d3a6d1f545f01ef38e60f375d1cf1f4de98188"; + sha256 = "0byhgs7jv0kybv0x3xycvi0x2gh7009a3dfgs02yqzzjbbwvrzgz"; }; }; }; @@ -455,10 +465,10 @@ let "nikic/php-parser" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "nikic-php-parser-2218c2252c874a4624ab2f613d86ac32d227bc69"; + name = "nikic-php-parser-139676794dc1e9231bf7bcd123cfc0c99182cb13"; src = fetchurl { - url = "https://api.github.com/repos/nikic/PHP-Parser/zipball/2218c2252c874a4624ab2f613d86ac32d227bc69"; - sha256 = "1dkil9kcp1abwa4nhpmy8my6srj70994mjh7wnhyw8yy084nf11z"; + url = "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13"; + sha256 = "1z4bvxvxs09099i3khiydmzy8lqjvk8kdani2qipmkq9vzf9pq56"; }; }; }; @@ -485,10 +495,10 @@ let "paragonie/constant_time_encoding" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "paragonie-constant_time_encoding-58c3f47f650c94ec05a151692652a868995d2938"; + name = "paragonie-constant_time_encoding-52a0d99e69f56b9ec27ace92ba56897fe6993105"; src = fetchurl { - url = "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/58c3f47f650c94ec05a151692652a868995d2938"; - sha256 = "0i9km0lzvc7df9758fm1p3y0679pzvr5m9x3mrz0d2hxlppsm764"; + url = "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105"; + sha256 = "1ja5b3fm5v665igrd37vs28zdipbh1xgh57lil2iaggvh1b8kh4x"; }; }; }; @@ -515,10 +525,10 @@ let "phenx/php-svg-lib" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "phenx-php-svg-lib-732faa9fb4309221e2bd9b2fda5de44f947133aa"; + name = "phenx-php-svg-lib-46b25da81613a9cf43c83b2a8c2c1bdab27df691"; src = fetchurl { - url = "https://api.github.com/repos/dompdf/php-svg-lib/zipball/732faa9fb4309221e2bd9b2fda5de44f947133aa"; - sha256 = "0hjf562cm8mvb36c2s63bh5104j6m5c27lwd4pgj3lwmq6mpzns6"; + url = "https://api.github.com/repos/dompdf/php-svg-lib/zipball/46b25da81613a9cf43c83b2a8c2c1bdab27df691"; + sha256 = "1bpkank11plq1xwxv5psn8ip4pk9qxffmgf71k0bzq26xa2b2v8b"; }; }; }; @@ -535,10 +545,10 @@ let "phpseclib/phpseclib" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "phpseclib-phpseclib-c2fb5136162d4be18fdd4da9980696f3aee96d7b"; + name = "phpseclib-phpseclib-cfa2013d0f68c062055180dd4328cc8b9d1f30b8"; src = fetchurl { - url = "https://api.github.com/repos/phpseclib/phpseclib/zipball/c2fb5136162d4be18fdd4da9980696f3aee96d7b"; - sha256 = "1n13c34w27vkrjz87vq7dxzz1xi0vj7xzj5slibdm1wfpvbsbg2m"; + url = "https://api.github.com/repos/phpseclib/phpseclib/zipball/cfa2013d0f68c062055180dd4328cc8b9d1f30b8"; + sha256 = "1wgzy4fbj565czpn9xasr8lnd9ilh1x3bsalrpx5bskvqr4zspgj"; }; }; }; @@ -615,10 +625,10 @@ let "psr/http-factory" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "psr-http-factory-e616d01114759c4c489f93b099585439f795fe35"; + name = "psr-http-factory-2b4765fddfe3b508ac62f829e852b1501d3f6e8a"; src = fetchurl { - url = "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35"; - sha256 = "1vzimn3h01lfz0jx0lh3cy9whr3kdh103m1fw07qric4pnnz5kx8"; + url = "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a"; + sha256 = "1ll0pzm0vd5kn45hhwrlkw2z9nqysqkykynn1bk1a73c5cjrghx3"; }; }; }; @@ -655,10 +665,10 @@ let "psy/psysh" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "psy-psysh-750bf031a48fd07c673dbe3f11f72362ea306d0d"; + name = "psy-psysh-b6b6cce7d3ee8fbf31843edce5e8f5a72eff4a73"; src = fetchurl { - url = "https://api.github.com/repos/bobthecow/psysh/zipball/750bf031a48fd07c673dbe3f11f72362ea306d0d"; - sha256 = "0kcs6g31v6k760dwapdbx34vqliispf8dhwrjjgrv34ysfbwrgvc"; + url = "https://api.github.com/repos/bobthecow/psysh/zipball/b6b6cce7d3ee8fbf31843edce5e8f5a72eff4a73"; + sha256 = "0k3fz94cafw7r8wrs5ybb15wmxiv65yqkyhj2l3m185659iym2p3"; }; }; }; @@ -675,20 +685,20 @@ let "ramsey/collection" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "ramsey-collection-ad7475d1c9e70b190ecffc58f2d989416af339b4"; + name = "ramsey-collection-a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5"; src = fetchurl { - url = "https://api.github.com/repos/ramsey/collection/zipball/ad7475d1c9e70b190ecffc58f2d989416af339b4"; - sha256 = "1a1wqdwdrbzkf2hias2kw9crr31265pn027vm69pr7alyq2qrzfw"; + url = "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5"; + sha256 = "0y5s9rbs023sw94yzvxr8fn9rr7xw03f08zmc9n9jl49zlr5s52p"; }; }; }; "ramsey/uuid" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "ramsey-uuid-5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e"; + name = "ramsey-uuid-91039bc1faa45ba123c4328958e620d382ec7088"; src = fetchurl { - url = "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e"; - sha256 = "0gnpj6jsmwr5azxq8ymp0zpscgxcwld7ps2q9rbkbndr9f9cpkkg"; + url = "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088"; + sha256 = "0n6rj0b042fq319gfnp2c4aawawfz8vb2allw30jjfaf8497hh9j"; }; }; }; @@ -735,20 +745,20 @@ let "socialiteproviders/manager" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "socialiteproviders-manager-a67f194f0f4c4c7616c549afc697b78df9658d44"; + name = "socialiteproviders-manager-dea5190981c31b89e52259da9ab1ca4e2b258b21"; src = fetchurl { - url = "https://api.github.com/repos/SocialiteProviders/Manager/zipball/a67f194f0f4c4c7616c549afc697b78df9658d44"; - sha256 = "0r5c6q7dm02hnk574br5mrm1z8amrxjxcbf4n94l02vq9din2c0m"; + url = "https://api.github.com/repos/SocialiteProviders/Manager/zipball/dea5190981c31b89e52259da9ab1ca4e2b258b21"; + sha256 = "11lvz1lckglh5nz0nvv0ifw9a2yfcgzlf30h09ci0d6cklkqf3la"; }; }; }; "socialiteproviders/microsoft-azure" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "socialiteproviders-microsoft-azure-7522b27cd8518706b50e03b40a396fb0a6891feb"; + name = "socialiteproviders-microsoft-azure-453d62c9d7e3b3b76e94c913fb46e68a33347b16"; src = fetchurl { - url = "https://api.github.com/repos/SocialiteProviders/Microsoft-Azure/zipball/7522b27cd8518706b50e03b40a396fb0a6891feb"; - sha256 = "0nlxyvcn3vc273rq9cp2yhm72mqfj31csnla5bqsaqdshzfk8pna"; + url = "https://api.github.com/repos/SocialiteProviders/Microsoft-Azure/zipball/453d62c9d7e3b3b76e94c913fb46e68a33347b16"; + sha256 = "0wcqwpj2x3llnisixz8id8ww0vr1cab7mh19mvf33dymxzydv11h"; }; }; }; @@ -765,130 +775,130 @@ let "socialiteproviders/twitch" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "socialiteproviders-twitch-7accf30ae7a3139b757b4ca8f34989c09a3dbee7"; + name = "socialiteproviders-twitch-c8791b9d208195b5f02bea432de89d0e612b955d"; src = fetchurl { - url = "https://api.github.com/repos/SocialiteProviders/Twitch/zipball/7accf30ae7a3139b757b4ca8f34989c09a3dbee7"; - sha256 = "089i4fwxb32zmbxib0544jfs48wzjyp7bsqss2bf2xx89dsrx4ah"; + url = "https://api.github.com/repos/SocialiteProviders/Twitch/zipball/c8791b9d208195b5f02bea432de89d0e612b955d"; + sha256 = "1abdn0ykx7rirmm64wi2zbw8fj9jr7a7p88p2mnfxd87l2qcc4rc"; }; }; }; "ssddanbrown/htmldiff" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "ssddanbrown-htmldiff-58f81857c02b50b199273edb4cc339876b5a4038"; + name = "ssddanbrown-htmldiff-92da405f8138066834b71ac7bedebbda6327761b"; src = fetchurl { - url = "https://api.github.com/repos/ssddanbrown/HtmlDiff/zipball/58f81857c02b50b199273edb4cc339876b5a4038"; - sha256 = "0ixsi2s1igvciwnal1v2w654n4idbfs8ipyiixch7k5nzxl4g7wm"; + url = "https://api.github.com/repos/ssddanbrown/HtmlDiff/zipball/92da405f8138066834b71ac7bedebbda6327761b"; + sha256 = "1l1s8fdpd7k39l7mslk7pqgg6bwk2c3644ifj58y6515sik6m142"; }; }; }; "ssddanbrown/symfony-mailer" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "ssddanbrown-symfony-mailer-2219dcdc5f58e4f382ce8f1e6942d16982aa3012"; + name = "ssddanbrown-symfony-mailer-0497d6eb2734fe22b9550f88ae6526611c9df7ae"; src = fetchurl { - url = "https://api.github.com/repos/ssddanbrown/symfony-mailer/zipball/2219dcdc5f58e4f382ce8f1e6942d16982aa3012"; - sha256 = "14j99gr09mvgjf6jjxbw50zay8n9mg6c0w429hz3vrfaijc2ih8c"; + url = "https://api.github.com/repos/ssddanbrown/symfony-mailer/zipball/0497d6eb2734fe22b9550f88ae6526611c9df7ae"; + sha256 = "0zs2hhcyv7f5lmz4xn9gp5dixcixgm3gfj4l8chzmqg6x640l59r"; }; }; }; "symfony/console" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-console-c3ebc83d031b71c39da318ca8b7a07ecc67507ed"; + name = "symfony-console-a170e64ae10d00ba89e2acbb590dc2e54da8ad8f"; src = fetchurl { - url = "https://api.github.com/repos/symfony/console/zipball/c3ebc83d031b71c39da318ca8b7a07ecc67507ed"; - sha256 = "1vvdw2fg08x9788m50isspi06n0lhw6c6nif3di1snxfq0sgb1np"; + url = "https://api.github.com/repos/symfony/console/zipball/a170e64ae10d00ba89e2acbb590dc2e54da8ad8f"; + sha256 = "16fnydlalcv3ihj2z7b0nyp6cc260k5apxpx7q1vb0hdx8b7wl6a"; }; }; }; "symfony/css-selector" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-css-selector-f1d00bddb83a4cb2138564b2150001cb6ce272b1"; + name = "symfony-css-selector-1c5d5c2103c3762aff27a27e1e2409e30a79083b"; src = fetchurl { - url = "https://api.github.com/repos/symfony/css-selector/zipball/f1d00bddb83a4cb2138564b2150001cb6ce272b1"; - sha256 = "0nl94wjr5sm4yrx9y0vwk4dzh1hm17f1n3d71hmj7biyzds0474i"; + url = "https://api.github.com/repos/symfony/css-selector/zipball/1c5d5c2103c3762aff27a27e1e2409e30a79083b"; + sha256 = "0glngr70w1kx1gqliv1w0zk23pblc993i3apdlmb68gp04b8gd3f"; }; }; }; "symfony/deprecation-contracts" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-deprecation-contracts-26954b3d62a6c5fd0ea8a2a00c0353a14978d05c"; + name = "symfony-deprecation-contracts-0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"; src = fetchurl { - url = "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c"; - sha256 = "1wlaj9ngbyjmgr92gjyf7lsmjfswyh8vpbzq5rdzaxjb6bcsj3dp"; + url = "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"; + sha256 = "1qhyyfyd7q75nyqivjzrljmqa5qhh09gjs2vz7s3xadq0j525c2b"; }; }; }; "symfony/error-handler" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-error-handler-c7df52182f43a68522756ac31a532dd5b1e6db67"; + name = "symfony-error-handler-667a072466c6a53827ed7b119af93806b884cbb3"; src = fetchurl { - url = "https://api.github.com/repos/symfony/error-handler/zipball/c7df52182f43a68522756ac31a532dd5b1e6db67"; - sha256 = "1dqr0n3w6zmk96q7x8pz1przkiyb2kyg5mw3d1nmnyry8dryv7c8"; + url = "https://api.github.com/repos/symfony/error-handler/zipball/667a072466c6a53827ed7b119af93806b884cbb3"; + sha256 = "077xdy196mbcaqx6kv7p2sx2ygbmnja0xa9mn34d9b1gjmz7kkvj"; }; }; }; "symfony/event-dispatcher" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-event-dispatcher-2eaf8e63bc5b8cefabd4a800157f0d0c094f677a"; + name = "symfony-event-dispatcher-d84384f3f67de3cb650db64d685d70395dacfc3f"; src = fetchurl { - url = "https://api.github.com/repos/symfony/event-dispatcher/zipball/2eaf8e63bc5b8cefabd4a800157f0d0c094f677a"; - sha256 = "0wwphxh21n502wgldh3kqqhvl1zxh2yncbadwwh05d8sp5mz0ysn"; + url = "https://api.github.com/repos/symfony/event-dispatcher/zipball/d84384f3f67de3cb650db64d685d70395dacfc3f"; + sha256 = "1d22vxp7fnjd9chl0yd1gnnfdbcgxkcxzl2fynkdf5b1rsx5vly3"; }; }; }; "symfony/event-dispatcher-contracts" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-event-dispatcher-contracts-7bc61cc2db649b4637d331240c5346dcc7708051"; + name = "symfony-event-dispatcher-contracts-8f93aec25d41b72493c6ddff14e916177c9efc50"; src = fetchurl { - url = "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051"; - sha256 = "1crx2j4g5jn904fwk7919ar9zpyfd5bvgm80lmyg15kinsjm3w4i"; + url = "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50"; + sha256 = "1ybpwhcf82fpa7lj5n2i8jhba2qmq4850svd4nv3v852vwr98ani"; }; }; }; "symfony/finder" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-finder-5cc9cac6586fc0c28cd173780ca696e419fefa11"; + name = "symfony-finder-511c48990be17358c23bf45c5d71ab85d40fb764"; src = fetchurl { - url = "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11"; - sha256 = "1f0sbxczwcrzxb03cc2rshfzdrkjfg7nwkbvvi449qscaq1qx2dc"; + url = "https://api.github.com/repos/symfony/finder/zipball/511c48990be17358c23bf45c5d71ab85d40fb764"; + sha256 = "0m3cm549cnk893dx8dzggbjy49qyx9zln82xi4w4m8rf93pc2ph9"; }; }; }; "symfony/http-foundation" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-http-foundation-e16b2676a4b3b1fa12378a20b29c364feda2a8d6"; + name = "symfony-http-foundation-b4db6b833035477cb70e18d0ae33cb7c2b521759"; src = fetchurl { - url = "https://api.github.com/repos/symfony/http-foundation/zipball/e16b2676a4b3b1fa12378a20b29c364feda2a8d6"; - sha256 = "0d2fgzcxi7sq7j8l1lg2kpfsr6p1xk1lxdjyqr63vihm34i8p42g"; + url = "https://api.github.com/repos/symfony/http-foundation/zipball/b4db6b833035477cb70e18d0ae33cb7c2b521759"; + sha256 = "1wwa9ib2imrdq7qrplf2lkbzs2irhjdfrhwdxff5dvcpkvd80qgj"; }; }; }; "symfony/http-kernel" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-http-kernel-6dc70833fd0ef5e861e17c7854c12d7d86679349"; + name = "symfony-http-kernel-b7b5e6cdef670a0c82d015a966ffc7e855861a98"; src = fetchurl { - url = "https://api.github.com/repos/symfony/http-kernel/zipball/6dc70833fd0ef5e861e17c7854c12d7d86679349"; - sha256 = "1j1z911g4nsx7wjg14q1g7y98qj1k4crxnwxi97i4cjnyqihcj2r"; + url = "https://api.github.com/repos/symfony/http-kernel/zipball/b7b5e6cdef670a0c82d015a966ffc7e855861a98"; + sha256 = "0ggvbn2qiydv0qcp5rsa5dpjqffj239zcyxiplv5vk4gnc2jy4qr"; }; }; }; "symfony/mime" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-mime-d7052547a0070cbeadd474e172b527a00d657301"; + name = "symfony-mime-decadcf3865918ecfcbfa90968553994ce935a5e"; src = fetchurl { - url = "https://api.github.com/repos/symfony/mime/zipball/d7052547a0070cbeadd474e172b527a00d657301"; - sha256 = "005jfcpcdn8p2qqv1kyh14jijx36n3rrh9v9a9immfdr0gyv22ca"; + url = "https://api.github.com/repos/symfony/mime/zipball/decadcf3865918ecfcbfa90968553994ce935a5e"; + sha256 = "0piaiwigyjvy9mn2464ka3cvzkylw3i1b8by5qr52z0mhm6sv7g5"; }; }; }; @@ -962,13 +972,13 @@ let }; }; }; - "symfony/polyfill-php81" = { + "symfony/polyfill-php83" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-polyfill-php81-c565ad1e63f30e7477fc40738343c62b40bc672d"; + name = "symfony-polyfill-php83-86fcae159633351e5fd145d1c47de6c528f8caff"; src = fetchurl { - url = "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d"; - sha256 = "0xy6jjnqvc6v1s7wvdm1yplblpbh43ilis93vjrlv7hc7i6ygfzg"; + url = "https://api.github.com/repos/symfony/polyfill-php83/zipball/86fcae159633351e5fd145d1c47de6c528f8caff"; + sha256 = "0n81fmn058rn7hr70qdwpsnam57pp27avs3h8xcfnq8d3hci5gr4"; }; }; }; @@ -985,80 +995,80 @@ let "symfony/process" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-process-2114fd60f26a296cc403a7939ab91478475a33d4"; + name = "symfony-process-cdb1c81c145fd5aa9b0038bab694035020943381"; src = fetchurl { - url = "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4"; - sha256 = "1rpcl0qayf0jysfn95c4s73r7fl48sng4m5flxy099z6m6bblwq1"; + url = "https://api.github.com/repos/symfony/process/zipball/cdb1c81c145fd5aa9b0038bab694035020943381"; + sha256 = "1dlqa0fivwr3q7z2k7n657dzdwywh4ilv88fiwh3n8r09iblnc65"; }; }; }; "symfony/routing" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-routing-e56ca9b41c1ec447193474cd86ad7c0b547755ac"; + name = "symfony-routing-276e06398f71fa2a973264d94f28150f93cfb907"; src = fetchurl { - url = "https://api.github.com/repos/symfony/routing/zipball/e56ca9b41c1ec447193474cd86ad7c0b547755ac"; - sha256 = "0qsx525fhqnx6g5rn8lavzpqccrg2ixrp88p1g4yjr8x7i2im5nd"; + url = "https://api.github.com/repos/symfony/routing/zipball/276e06398f71fa2a973264d94f28150f93cfb907"; + sha256 = "1a9g57sdny5sph2w1i7wizssg90k50msalk7nhcy0p9q584r61g6"; }; }; }; "symfony/service-contracts" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-service-contracts-d78d39c1599bd1188b8e26bb341da52c3c6d8a66"; + name = "symfony-service-contracts-bd1d9e59a81d8fa4acdcea3f617c581f7475a80f"; src = fetchurl { - url = "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66"; - sha256 = "1cgbn2yx2fyrc3c1d85vdriiwwifr1sdg868f3rhq9bh78f03z99"; + url = "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f"; + sha256 = "1q7382ingrvqdh7hm8lrwrimcvlv5qcmp6xrparfh1kmrsf45prv"; }; }; }; "symfony/string" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-string-d9e72497367c23e08bf94176d2be45b00a9d232a"; + name = "symfony-string-ffeb9591c61f65a68d47f77d12b83fa530227a69"; src = fetchurl { - url = "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a"; - sha256 = "0k4vvcjfdp2dni8gzq4rn8d6n0ivd38sfna70lgsh8vlc8rrlhpf"; + url = "https://api.github.com/repos/symfony/string/zipball/ffeb9591c61f65a68d47f77d12b83fa530227a69"; + sha256 = "0mw6issgmncy1xnnszwy0xa8cxqin41k4idk3wv6crdsywzylxkx"; }; }; }; "symfony/translation" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-translation-9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f"; + name = "symfony-translation-7495687c58bfd88b7883823747b0656d90679123"; src = fetchurl { - url = "https://api.github.com/repos/symfony/translation/zipball/9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f"; - sha256 = "12c13k5ljch06g8xp28kkpv0ml67hy086rk25mzd94hjpawrs4x2"; + url = "https://api.github.com/repos/symfony/translation/zipball/7495687c58bfd88b7883823747b0656d90679123"; + sha256 = "1s9kxq8nhiwg235jhfg00gzlixnxhcclw3wvmfdn6ijww4s62rqi"; }; }; }; "symfony/translation-contracts" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-translation-contracts-acbfbb274e730e5a0236f619b6168d9dedb3e282"; + name = "symfony-translation-contracts-b9d2189887bb6b2e0367a9fc7136c5239ab9b05a"; src = fetchurl { - url = "https://api.github.com/repos/symfony/translation-contracts/zipball/acbfbb274e730e5a0236f619b6168d9dedb3e282"; - sha256 = "1r496j63a6q3ch0ax76qa1apmc4iqf41zc8rf6yn8vkir3nzkqr0"; + url = "https://api.github.com/repos/symfony/translation-contracts/zipball/b9d2189887bb6b2e0367a9fc7136c5239ab9b05a"; + sha256 = "0y9dp08gw7rk50i5lpci6n2hziajvps97g9j3sz148p0afdr5q3c"; }; }; }; "symfony/uid" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-uid-6499e28b0ac9f2aa3151e11845bdb5cd21e6bb9d"; + name = "symfony-uid-a66efcb71d8bc3a207d9d78e0bd67f3321510355"; src = fetchurl { - url = "https://api.github.com/repos/symfony/uid/zipball/6499e28b0ac9f2aa3151e11845bdb5cd21e6bb9d"; - sha256 = "12r2jgmwwchmq4apgmb2h1hy6i4cznjpc94976h2qzy3q3yp7zyq"; + url = "https://api.github.com/repos/symfony/uid/zipball/a66efcb71d8bc3a207d9d78e0bd67f3321510355"; + sha256 = "0aajisswwd938xkjci1nsz6ypmqidf4dhq2xjy55x1l1jpg4vkji"; }; }; }; "symfony/var-dumper" = { targetDir = ""; src = composerEnv.buildZipPackage { - name = "symfony-var-dumper-eb980457fa6899840fe1687e8627a03a7d8a3d52"; + name = "symfony-var-dumper-7a9cd977cd1c5fed3694bee52990866432af07d7"; src = fetchurl { - url = "https://api.github.com/repos/symfony/var-dumper/zipball/eb980457fa6899840fe1687e8627a03a7d8a3d52"; - sha256 = "183igs4i74kljxyq7azpg59wb281mlvy1xgqnb4pkz4dw50jgc2k"; + url = "https://api.github.com/repos/symfony/var-dumper/zipball/7a9cd977cd1c5fed3694bee52990866432af07d7"; + sha256 = "1fsiwhrhgzhj8ncv8vz0dsd1s5v4dgphy71j8jqx814s8rb4xd0s"; }; }; }; From 0a0534b46b77854ea1487449610403ab7d2ac3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Thu, 6 Jun 2024 22:05:59 +1000 Subject: [PATCH 100/121] python311Packages.ase: fix darwin build Ase requires tkinter in gui/tests. --- pkgs/development/python-modules/ase/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/ase/default.nix b/pkgs/development/python-modules/ase/default.nix index 6bd5f58b4203..b6b020c07121 100644 --- a/pkgs/development/python-modules/ase/default.nix +++ b/pkgs/development/python-modules/ase/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, fetchPypi, buildPythonPackage, isPy27, @@ -11,6 +12,7 @@ flask, pillow, psycopg2, + tkinter, pytestCheckHook, pytest-mock, pytest-xdist, @@ -37,6 +39,8 @@ buildPythonPackage rec { flask pillow psycopg2 + ] ++ lib.optionals stdenv.isDarwin [ + tkinter ]; nativeCheckInputs = [ From 581b56878481bf9066571eb734faa640d08a2ff7 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 6 Jun 2024 15:22:39 +0300 Subject: [PATCH 101/121] targetcli: fix typelib error Add pygobject3,glib,gobject-introspection to not rely on something propagating them --- pkgs/os-specific/linux/targetcli/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/targetcli/default.nix b/pkgs/os-specific/linux/targetcli/default.nix index 6058b3509772..c30f64589bb8 100644 --- a/pkgs/os-specific/linux/targetcli/default.nix +++ b/pkgs/os-specific/linux/targetcli/default.nix @@ -1,4 +1,4 @@ -{ lib, python3, fetchFromGitHub, nixosTests }: +{ lib, python3, fetchFromGitHub, nixosTests, wrapGAppsNoGuiHook, gobject-introspection, glib }: python3.pkgs.buildPythonApplication rec { pname = "targetcli"; @@ -11,7 +11,10 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-9QYo7jGk9iWr26j0qPQCqYsJ+vLXAsO4Xs7+7VT9/yc="; }; - propagatedBuildInputs = with python3.pkgs; [ configshell rtslib ]; + nativeBuildInputs = [ wrapGAppsNoGuiHook gobject-introspection ]; + buildInputs = [ glib ]; + + propagatedBuildInputs = with python3.pkgs; [ configshell rtslib pygobject3 ]; postInstall = '' install -D targetcli.8 -t $out/share/man/man8/ From d735378802a3e3929dbd18a170ea7847176cee87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 6 Jun 2024 10:11:27 -0300 Subject: [PATCH 102/121] lxqt.qtermwidget: add prior version 1.4.0 for compatibility with qt5 --- pkgs/desktops/lxqt/default.nix | 5 +++++ pkgs/desktops/lxqt/qtermwidget/default.nix | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/lxqt/default.nix b/pkgs/desktops/lxqt/default.nix index 8418652dbc38..3efd526cb6bd 100644 --- a/pkgs/desktops/lxqt/default.nix +++ b/pkgs/desktops/lxqt/default.nix @@ -75,6 +75,11 @@ let libfm-qt = libfm-qt_1_4; inherit (pkgs.libsForQt5) qtbase qtsvg qttools libdbusmenu; }; + qtermwidget_1_4 = callPackage ./qtermwidget { + version = "1.4.0"; + lxqt-build-tools = lxqt-build-tools_0_13; + inherit (pkgs.libsForQt5) qtbase qttools; + }; preRequisitePackages = [ kdePackages.kwindowsystem # provides some QT plugins needed by lxqt-panel diff --git a/pkgs/desktops/lxqt/qtermwidget/default.nix b/pkgs/desktops/lxqt/qtermwidget/default.nix index 35c5b2c3f641..fb0c63460df1 100644 --- a/pkgs/desktops/lxqt/qtermwidget/default.nix +++ b/pkgs/desktops/lxqt/qtermwidget/default.nix @@ -7,17 +7,21 @@ , lxqt-build-tools , wrapQtAppsHook , gitUpdater +, version ? "2.0.0" }: stdenv.mkDerivation rec { pname = "qtermwidget"; - version = "2.0.0"; + inherit version; src = fetchFromGitHub { owner = "lxqt"; repo = pname; rev = version; - hash = "sha256-kZS6D/wSJFRt/+Afq0zCCmNnJPpFT+1hd4zVPc+rJsE="; + hash = { + "1.4.0" = "sha256-wYUOqAiBjnupX1ITbFMw7sAk42V37yDz9SrjVhE4FgU="; + "2.0.0" = "sha256-kZS6D/wSJFRt/+Afq0zCCmNnJPpFT+1hd4zVPc+rJsE="; + }."${version}"; }; nativeBuildInputs = [ From 4d3ee6f521217301bbf60868d263fb3244cb9380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 6 Jun 2024 09:36:37 -0300 Subject: [PATCH 103/121] virt-manager-qt: 0.72.97 -> 0.72.99 Diff: https://github.com/F1ash/qt-virt-manager/compare/0.72.97...0.72.99 --- .../virtualization/virt-manager/qt.nix | 14 +++----------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/virtualization/virt-manager/qt.nix b/pkgs/applications/virtualization/virt-manager/qt.nix index 840ada805d75..103d0a3f4fbb 100644 --- a/pkgs/applications/virtualization/virt-manager/qt.nix +++ b/pkgs/applications/virtualization/virt-manager/qt.nix @@ -1,4 +1,4 @@ -{ mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config +{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config , qtbase, qtmultimedia, qtsvg, qttools, krdc , libvncserver, libvirt, pcre, pixman, qtermwidget, spice-gtk, spice-protocol , libselinux, libsepol, util-linux @@ -6,13 +6,13 @@ mkDerivation rec { pname = "virt-manager-qt"; - version = "0.72.97"; + version = "0.72.99"; src = fetchFromGitHub { owner = "F1ash"; repo = "qt-virt-manager"; rev = version; - sha256 = "0b2bx7ah35glcsiv186sc9cqdrkhg1vs9jz036k9byk61np0cb1i"; + hash = "sha256-1aXlGlK+YPOe2X51xycWvSu8YC9uCywyL6ItiScFA04="; }; cmakeFlags = [ @@ -20,14 +20,6 @@ mkDerivation rec { "-DQTERMWIDGET_INCLUDE_DIRS=${qtermwidget}/include/qtermwidget5" ]; - patches = [ - (fetchpatch { - # drop with next update - url = "https://github.com/F1ash/qt-virt-manager/commit/0d338b037ef58c376d468c1cd4521a34ea181edd.patch"; - sha256 = "1wjqyc5wsnxfwwjzgqjr9hcqhd867amwhjd712qyvpvz8x7p2s24"; - }) - ]; - buildInputs = [ qtbase qtmultimedia qtsvg krdc libvirt libvncserver pcre pixman qtermwidget spice-gtk spice-protocol diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04c85ccacd8d..ae55ffec445d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35176,7 +35176,7 @@ with pkgs; }; virt-manager-qt = libsForQt5.callPackage ../applications/virtualization/virt-manager/qt.nix { - qtermwidget = lxqt.qtermwidget; + qtermwidget = lxqt.qtermwidget_1_4; }; virtscreen = callPackage ../tools/admin/virtscreen { }; From d960be8f6ab359fc77d317a20eb5bdd961422476 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Fri, 5 Jan 2024 00:58:11 +0100 Subject: [PATCH 104/121] comet-gog: init at 0-unstable-2024-05-25 --- pkgs/by-name/co/comet-gog/package.nix | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/co/comet-gog/package.nix diff --git a/pkgs/by-name/co/comet-gog/package.nix b/pkgs/by-name/co/comet-gog/package.nix new file mode 100644 index 000000000000..61552a8d5b00 --- /dev/null +++ b/pkgs/by-name/co/comet-gog/package.nix @@ -0,0 +1,46 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + protobuf, + darwin, +}: + +let + inherit (darwin.apple_sdk.frameworks) CoreFoundation SystemConfiguration; +in +rustPlatform.buildRustPackage { + pname = "comet-gog"; + version = "0-unstable-2024-05-25"; + + src = fetchFromGitHub { + owner = "imLinguin"; + repo = "comet"; + rev = "378ec2abdc2498e7c0c12aa50b71f6d94c3e8e3c"; + hash = "sha256-r7ZPpJLy2fZsyNijl0+uYWQN941TCbv+Guv3wzD83IQ="; + fetchSubmodules = true; + }; + + cargoHash = "sha256-dXNAGMVayzgT96ETrph9eCbQv28EK/OOxIRV8ewpVvs="; + + # error: linker `aarch64-linux-gnu-gcc` not found + postPatch = '' + rm .cargo/config.toml + ''; + + env.PROTOC = lib.getExe' protobuf "protoc"; + + buildInputs = lib.optionals stdenv.isDarwin [ + CoreFoundation + SystemConfiguration + ]; + + meta = { + description = "Open Source implementation of GOG Galaxy's Communication Service"; + homepage = "https://github.com/imLinguin/comet"; + license = lib.licenses.gpl3Plus; + mainProgram = "comet"; + maintainers = with lib.maintainers; [ tomasajt ]; + }; +} From 7805e850c52c61ee78ade3d76b133d3338983bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 6 Jun 2024 10:48:52 -0300 Subject: [PATCH 105/121] python312Packages.latex2pydata: 0.3.0 -> 0.4.0 --- pkgs/development/python-modules/latex2pydata/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/latex2pydata/default.nix b/pkgs/development/python-modules/latex2pydata/default.nix index 535978bad8aa..80005a173af0 100644 --- a/pkgs/development/python-modules/latex2pydata/default.nix +++ b/pkgs/development/python-modules/latex2pydata/default.nix @@ -7,12 +7,12 @@ buildPythonPackage rec { pname = "latex2pydata"; - version = "0.3.0"; + version = "0.4.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-XMGmTK1H6f66pI/wDLA3+Pytl4A7spbMMpfa77xr2M4="; + hash = "sha256-Ega1cHSP187njyelb0yiCdpk08QZyObelRa2S79AE1E="; }; build-system = [ From dce473c2d12764ab4e6a4a3f6ae22e264552fe86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 6 Jun 2024 11:40:46 -0300 Subject: [PATCH 106/121] marwaita-x: 1.1 -> 1.2 Diff: https://github.com/darkomarko42/marwaita-x/compare/1.1...1.2 --- pkgs/by-name/ma/marwaita-x/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ma/marwaita-x/package.nix b/pkgs/by-name/ma/marwaita-x/package.nix index c370771153ff..e46e382bcd8e 100644 --- a/pkgs/by-name/ma/marwaita-x/package.nix +++ b/pkgs/by-name/ma/marwaita-x/package.nix @@ -10,13 +10,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "marwaita-x"; - version = "1.1"; + version = "1.2"; src = fetchFromGitHub { owner = "darkomarko42"; repo = "marwaita-x"; rev = finalAttrs.version; - sha256 = "sha256-BygdRRS+d8iP6f2NQ0RmZh14/goP9NoNzg6tpcpOz8c="; + sha256 = "sha256-HQsIF9CNFROaxl5hnmat2VWEXFT8gW4UWSi/A1dFi6Y="; }; buildInputs = [ From f2318b9d581cb5a066428297371fe83b7e7cdee4 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 6 Jun 2024 18:33:30 +0200 Subject: [PATCH 107/121] nixos/boot: use `--replace-fail` --- nixos/modules/system/boot/systemd/coredump.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/coredump.nix b/nixos/modules/system/boot/systemd/coredump.nix index 1f29f6686d0d..ccf5d449b94a 100644 --- a/nixos/modules/system/boot/systemd/coredump.nix +++ b/nixos/modules/system/boot/systemd/coredump.nix @@ -53,7 +53,7 @@ in { pkgs.substitute { src = "${systemd}/example/sysctl.d/50-coredump.conf"; substitutions = [ - "--replace" + "--replace-fail" "${systemd}" "${pkgs.symlinkJoin { name = "systemd"; paths = [ systemd ]; }}" ]; From 83c47d19ff752fc868a18e6878d74e3981710868 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 May 2024 09:32:53 +0200 Subject: [PATCH 108/121] python312Packages.libtmux: 0.36.0 -> 0.37.0 Diff: https://github.com/tmux-python/libtmux/compare/refs/tags/v0.37.0...v0.37.0 Changelog: https://github.com/tmux-python/libtmux/raw/v0.37.0/CHANGES Signed-off-by: Otavio Salvador --- .../python-modules/libtmux/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/libtmux/default.nix b/pkgs/development/python-modules/libtmux/default.nix index abd82ba2f25e..0bb5cb5cda28 100644 --- a/pkgs/development/python-modules/libtmux/default.nix +++ b/pkgs/development/python-modules/libtmux/default.nix @@ -1,33 +1,34 @@ { lib, stdenv, - fetchFromGitHub, buildPythonPackage, + fetchFromGitHub, + ncurses, poetry-core, + procps, pytest-rerunfailures, pytestCheckHook, - procps, tmux, - ncurses, }: buildPythonPackage rec { pname = "libtmux"; - version = "0.36.0"; + version = "0.37.0"; pyproject = true; src = fetchFromGitHub { owner = "tmux-python"; - repo = pname; + repo = "libtmux"; rev = "refs/tags/v${version}"; - hash = "sha256-oJ2IGaPFMKA/amUEPZi1UO9vZtjPNQg3SIFjQWzUeSE="; + hash = "sha256-I0E6zkfQ6mx2svCaXEgKPhrrog3iLgXZ4E3CMMxPkIA="; }; postPatch = '' - sed -i '/addopts/d' pyproject.toml + substituteInPlace pyproject.toml \ + --replace-fail '"--doctest-docutils-modules",' "" ''; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ procps @@ -53,7 +54,6 @@ buildPythonPackage rec { disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_test.py" - "tests/legacy_api/test_test.py" ]; pythonImportsCheck = [ "libtmux" ]; From 655f0bf07ba2f9fb374f4ceee651569147e62c50 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 3 Jun 2024 13:30:30 +0000 Subject: [PATCH 109/121] tmuxp: 1.46.0 -> 1.47.0 --- pkgs/tools/misc/tmuxp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/tmuxp/default.nix b/pkgs/tools/misc/tmuxp/default.nix index f0352cdda360..6964cb5ace4e 100644 --- a/pkgs/tools/misc/tmuxp/default.nix +++ b/pkgs/tools/misc/tmuxp/default.nix @@ -2,8 +2,8 @@ let pname = "tmuxp"; - version = "1.46.0"; - hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU="; + version = "1.47.0"; + hash = "sha256-HYY6CEUPpZVvVK9kV4Ehw4wGk5YfIVSkZ0+qqf6Nz4c="; in python3Packages.buildPythonApplication { inherit pname version; From 51b972886c6915b65bcf0548b1cda5deb58f4ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 6 Jun 2024 10:27:07 -0700 Subject: [PATCH 110/121] nextcloud29: 29.0.1 -> 29.0.2 Changelog: https://nextcloud.com/changelog/#29-0-2 --- pkgs/servers/nextcloud/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/nextcloud/default.nix b/pkgs/servers/nextcloud/default.nix index aa09ec90f78e..7e853eed71de 100644 --- a/pkgs/servers/nextcloud/default.nix +++ b/pkgs/servers/nextcloud/default.nix @@ -55,8 +55,8 @@ in { }; nextcloud29 = generic { - version = "29.0.1"; - hash = "sha256-dZVG2uz3nKeH7WcFUDaTxttVOqvx165N+neccwmyrak="; + version = "29.0.2"; + hash = "sha256-LUnSl9w0AJICEFeCPo54oxK8APVt59hneseQWQkYqxc="; packages = nextcloud29Packages; }; From 0a379a943997ee2de81a3b0b258120bc702a93d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 6 Jun 2024 10:29:00 -0700 Subject: [PATCH 111/121] nextcloudPackages: update --- pkgs/servers/nextcloud/packages/27.json | 18 +++++++++--------- pkgs/servers/nextcloud/packages/28.json | 18 +++++++++--------- pkgs/servers/nextcloud/packages/29.json | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/pkgs/servers/nextcloud/packages/27.json b/pkgs/servers/nextcloud/packages/27.json index 1ce37d20fddb..dbab86fde27c 100644 --- a/pkgs/servers/nextcloud/packages/27.json +++ b/pkgs/servers/nextcloud/packages/27.json @@ -10,9 +10,9 @@ ] }, "calendar": { - "sha256": "0zm2a63f99q7n1qw2n3p4pk50j5v4q24vpgndk4nnvaz6c792rzg", - "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.4/calendar-v4.7.4.tar.gz", - "version": "4.7.4", + "sha256": "09rsp5anpaqzwmrixza5qh12vmq9hd3an045064vm3rnynz537qc", + "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.6/calendar-v4.7.6.tar.gz", + "version": "4.7.6", "description": "The Calendar app is a user interface for Nextcloud's CalDAV server. Easily sync events from various devices with your Nextcloud and edit them online.\n\n* πŸš€ **Integration with other Nextcloud apps!** Currently Contacts - more to come.\n* 🌐 **WebCal Support!** Want to see your favorite team’s matchdays in your calendar? No problem!\n* πŸ™‹ **Attendees!** Invite people to your events\n* ⌚️ **Free/Busy!** See when your attendees are available to meet\n* ⏰ **Reminders!** Get alarms for events inside your browser and via email\n* πŸ” Search! Find your events at ease\n* β˜‘οΈ Tasks! See tasks with a due date directly in the calendar\n* πŸ™ˆ **We’re not reinventing the wheel!** Based on the great [c-dav library](https://github.com/nextcloud/cdav-library), [ical.js](https://github.com/mozilla-comm/ical.js) and [fullcalendar](https://github.com/fullcalendar/fullcalendar) libraries.", "homepage": "https://github.com/nextcloud/calendar/", "licenses": [ @@ -140,9 +140,9 @@ ] }, "mail": { - "sha256": "1w6bww8wc42biz1zjf4fxgf60ryh1cdsm8b6ji3fhsqjlmkvs4ly", - "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.6.1/mail-v3.6.1.tar.gz", - "version": "3.6.1", + "sha256": "1q0ihgrb6sk0rizs45clqhjpmai2m2zislw6s1694j1zssz4jpqg", + "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.7.1/mail-v3.7.1.tar.gz", + "version": "3.7.1", "description": "**πŸ’Œ A mail app for Nextcloud**\n\n- **πŸš€ Integration with other Nextcloud apps!** Currently Contacts, Calendar & Files – more to come.\n- **πŸ“₯ Multiple mail accounts!** Personal and company account? No problem, and a nice unified inbox. Connect any IMAP account.\n- **πŸ”’ Send & receive encrypted mails!** Using the great [Mailvelope](https://mailvelope.com) browser extension.\n- **πŸ™ˆ We’re not reinventing the wheel!** Based on the great [Horde](https://horde.org) libraries.\n- **πŸ“¬ Want to host your own mail server?** We do not have to reimplement this as you could set up [Mail-in-a-Box](https://mailinabox.email)!\n\n## Ethical AI Rating\n\n### Priority Inbox\n\nPositive:\n* The software for training and inferencing of this model is open source.\n* The model is created and trained on-premises based on the user's own data.\n* The training data is accessible to the user, making it possible to check or correct for bias or optimise the performance and CO2 usage.\n\n### Thread Summaries (opt-in)\n\n**Rating:** 🟒/🟑/🟠/πŸ”΄\n\nThe rating depends on the installed text processing backend. See [the rating overview](https://docs.nextcloud.com/server/latest/admin_manual/ai/index.html) for details.\n\nLearn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud.com/blog/nextcloud-ethical-ai-rating/).", "homepage": "https://github.com/nextcloud/mail#readme", "licenses": [ @@ -230,9 +230,9 @@ ] }, "polls": { - "sha256": "0zsklab2sjz5b37b1dn0fpc21yvxrp7fvacppv1v6x5yppnmm6kh", - "url": "https://github.com/nextcloud/polls/releases/download/v6.4.0/polls.tar.gz", - "version": "6.4.0", + "sha256": "0wijb8dkszyzs3108qylcjnvd3kdhlciqndhgc993ybwqxqxfsxn", + "url": "https://github.com/nextcloud/polls/releases/download/v6.4.1/polls.tar.gz", + "version": "6.4.1", "description": "A polls app, similar to Doodle/Dudle with the possibility to restrict access (members, certain groups/users, hidden and public).", "homepage": "https://github.com/nextcloud/polls", "licenses": [ diff --git a/pkgs/servers/nextcloud/packages/28.json b/pkgs/servers/nextcloud/packages/28.json index 7b8d3615bab7..0a5c405e3611 100644 --- a/pkgs/servers/nextcloud/packages/28.json +++ b/pkgs/servers/nextcloud/packages/28.json @@ -1,8 +1,8 @@ { "bookmarks": { - "sha256": "1i003cp6x4hw3zkaf49a0srkgr257fbv3p612whd1nsbm2mfd2mf", - "url": "https://github.com/nextcloud/bookmarks/releases/download/v14.1.1/bookmarks-14.1.1.tar.gz", - "version": "14.1.1", + "sha256": "01m78jfnqgvqj94v13bi6rj52sgwrp18zs4svgbdrci3lc7xqyp2", + "url": "https://github.com/nextcloud/bookmarks/releases/download/v14.1.2/bookmarks-14.1.2.tar.gz", + "version": "14.1.2", "description": "- πŸ“‚ Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- πŸ” Full-text search\n- πŸ“² Synchronize with all your browsers and devices\n- πŸ‘ͺ Share bookmarks with other users and publicly\n- ☠ Find broken links\n- βš› Generate RSS feeds of your collections\n- πŸ“” Read archived versions of your links in case they are depublished\n- πŸ’¬ Create new bookmarks directly from within Nextcloud Talk\n- πŸ’Ό Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0", "homepage": "https://github.com/nextcloud/bookmarks", "licenses": [ @@ -10,9 +10,9 @@ ] }, "calendar": { - "sha256": "0zm2a63f99q7n1qw2n3p4pk50j5v4q24vpgndk4nnvaz6c792rzg", - "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.4/calendar-v4.7.4.tar.gz", - "version": "4.7.4", + "sha256": "09rsp5anpaqzwmrixza5qh12vmq9hd3an045064vm3rnynz537qc", + "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.6/calendar-v4.7.6.tar.gz", + "version": "4.7.6", "description": "The Calendar app is a user interface for Nextcloud's CalDAV server. Easily sync events from various devices with your Nextcloud and edit them online.\n\n* πŸš€ **Integration with other Nextcloud apps!** Currently Contacts - more to come.\n* 🌐 **WebCal Support!** Want to see your favorite team’s matchdays in your calendar? No problem!\n* πŸ™‹ **Attendees!** Invite people to your events\n* ⌚️ **Free/Busy!** See when your attendees are available to meet\n* ⏰ **Reminders!** Get alarms for events inside your browser and via email\n* πŸ” Search! Find your events at ease\n* β˜‘οΈ Tasks! See tasks with a due date directly in the calendar\n* πŸ™ˆ **We’re not reinventing the wheel!** Based on the great [c-dav library](https://github.com/nextcloud/cdav-library), [ical.js](https://github.com/mozilla-comm/ical.js) and [fullcalendar](https://github.com/fullcalendar/fullcalendar) libraries.", "homepage": "https://github.com/nextcloud/calendar/", "licenses": [ @@ -120,9 +120,9 @@ ] }, "mail": { - "sha256": "1w6bww8wc42biz1zjf4fxgf60ryh1cdsm8b6ji3fhsqjlmkvs4ly", - "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.6.1/mail-v3.6.1.tar.gz", - "version": "3.6.1", + "sha256": "1q0ihgrb6sk0rizs45clqhjpmai2m2zislw6s1694j1zssz4jpqg", + "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.7.1/mail-v3.7.1.tar.gz", + "version": "3.7.1", "description": "**πŸ’Œ A mail app for Nextcloud**\n\n- **πŸš€ Integration with other Nextcloud apps!** Currently Contacts, Calendar & Files – more to come.\n- **πŸ“₯ Multiple mail accounts!** Personal and company account? No problem, and a nice unified inbox. Connect any IMAP account.\n- **πŸ”’ Send & receive encrypted mails!** Using the great [Mailvelope](https://mailvelope.com) browser extension.\n- **πŸ™ˆ We’re not reinventing the wheel!** Based on the great [Horde](https://horde.org) libraries.\n- **πŸ“¬ Want to host your own mail server?** We do not have to reimplement this as you could set up [Mail-in-a-Box](https://mailinabox.email)!\n\n## Ethical AI Rating\n\n### Priority Inbox\n\nPositive:\n* The software for training and inferencing of this model is open source.\n* The model is created and trained on-premises based on the user's own data.\n* The training data is accessible to the user, making it possible to check or correct for bias or optimise the performance and CO2 usage.\n\n### Thread Summaries (opt-in)\n\n**Rating:** 🟒/🟑/🟠/πŸ”΄\n\nThe rating depends on the installed text processing backend. See [the rating overview](https://docs.nextcloud.com/server/latest/admin_manual/ai/index.html) for details.\n\nLearn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud.com/blog/nextcloud-ethical-ai-rating/).", "homepage": "https://github.com/nextcloud/mail#readme", "licenses": [ diff --git a/pkgs/servers/nextcloud/packages/29.json b/pkgs/servers/nextcloud/packages/29.json index c49903cd3994..7f7e7d91e9f3 100644 --- a/pkgs/servers/nextcloud/packages/29.json +++ b/pkgs/servers/nextcloud/packages/29.json @@ -1,8 +1,8 @@ { "bookmarks": { - "sha256": "1i003cp6x4hw3zkaf49a0srkgr257fbv3p612whd1nsbm2mfd2mf", - "url": "https://github.com/nextcloud/bookmarks/releases/download/v14.1.1/bookmarks-14.1.1.tar.gz", - "version": "14.1.1", + "sha256": "01m78jfnqgvqj94v13bi6rj52sgwrp18zs4svgbdrci3lc7xqyp2", + "url": "https://github.com/nextcloud/bookmarks/releases/download/v14.1.2/bookmarks-14.1.2.tar.gz", + "version": "14.1.2", "description": "- πŸ“‚ Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- πŸ” Full-text search\n- πŸ“² Synchronize with all your browsers and devices\n- πŸ‘ͺ Share bookmarks with other users and publicly\n- ☠ Find broken links\n- βš› Generate RSS feeds of your collections\n- πŸ“” Read archived versions of your links in case they are depublished\n- πŸ’¬ Create new bookmarks directly from within Nextcloud Talk\n- πŸ’Ό Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0", "homepage": "https://github.com/nextcloud/bookmarks", "licenses": [ @@ -10,9 +10,9 @@ ] }, "calendar": { - "sha256": "0zm2a63f99q7n1qw2n3p4pk50j5v4q24vpgndk4nnvaz6c792rzg", - "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.4/calendar-v4.7.4.tar.gz", - "version": "4.7.4", + "sha256": "09rsp5anpaqzwmrixza5qh12vmq9hd3an045064vm3rnynz537qc", + "url": "https://github.com/nextcloud-releases/calendar/releases/download/v4.7.6/calendar-v4.7.6.tar.gz", + "version": "4.7.6", "description": "The Calendar app is a user interface for Nextcloud's CalDAV server. Easily sync events from various devices with your Nextcloud and edit them online.\n\n* πŸš€ **Integration with other Nextcloud apps!** Currently Contacts - more to come.\n* 🌐 **WebCal Support!** Want to see your favorite team’s matchdays in your calendar? No problem!\n* πŸ™‹ **Attendees!** Invite people to your events\n* ⌚️ **Free/Busy!** See when your attendees are available to meet\n* ⏰ **Reminders!** Get alarms for events inside your browser and via email\n* πŸ” Search! Find your events at ease\n* β˜‘οΈ Tasks! See tasks with a due date directly in the calendar\n* πŸ™ˆ **We’re not reinventing the wheel!** Based on the great [c-dav library](https://github.com/nextcloud/cdav-library), [ical.js](https://github.com/mozilla-comm/ical.js) and [fullcalendar](https://github.com/fullcalendar/fullcalendar) libraries.", "homepage": "https://github.com/nextcloud/calendar/", "licenses": [ @@ -120,9 +120,9 @@ ] }, "mail": { - "sha256": "1w6bww8wc42biz1zjf4fxgf60ryh1cdsm8b6ji3fhsqjlmkvs4ly", - "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.6.1/mail-v3.6.1.tar.gz", - "version": "3.6.1", + "sha256": "1q0ihgrb6sk0rizs45clqhjpmai2m2zislw6s1694j1zssz4jpqg", + "url": "https://github.com/nextcloud-releases/mail/releases/download/v3.7.1/mail-v3.7.1.tar.gz", + "version": "3.7.1", "description": "**πŸ’Œ A mail app for Nextcloud**\n\n- **πŸš€ Integration with other Nextcloud apps!** Currently Contacts, Calendar & Files – more to come.\n- **πŸ“₯ Multiple mail accounts!** Personal and company account? No problem, and a nice unified inbox. Connect any IMAP account.\n- **πŸ”’ Send & receive encrypted mails!** Using the great [Mailvelope](https://mailvelope.com) browser extension.\n- **πŸ™ˆ We’re not reinventing the wheel!** Based on the great [Horde](https://horde.org) libraries.\n- **πŸ“¬ Want to host your own mail server?** We do not have to reimplement this as you could set up [Mail-in-a-Box](https://mailinabox.email)!\n\n## Ethical AI Rating\n\n### Priority Inbox\n\nPositive:\n* The software for training and inferencing of this model is open source.\n* The model is created and trained on-premises based on the user's own data.\n* The training data is accessible to the user, making it possible to check or correct for bias or optimise the performance and CO2 usage.\n\n### Thread Summaries (opt-in)\n\n**Rating:** 🟒/🟑/🟠/πŸ”΄\n\nThe rating depends on the installed text processing backend. See [the rating overview](https://docs.nextcloud.com/server/latest/admin_manual/ai/index.html) for details.\n\nLearn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud.com/blog/nextcloud-ethical-ai-rating/).", "homepage": "https://github.com/nextcloud/mail#readme", "licenses": [ From b0ed5ce2fc88c3482288eaf54fbb288ed486c220 Mon Sep 17 00:00:00 2001 From: Michael Evans Date: Tue, 4 Jun 2024 20:09:47 +0200 Subject: [PATCH 112/121] buffer: init at 0.9.2 --- pkgs/by-name/bu/buffer/package.nix | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pkgs/by-name/bu/buffer/package.nix diff --git a/pkgs/by-name/bu/buffer/package.nix b/pkgs/by-name/bu/buffer/package.nix new file mode 100644 index 000000000000..54b017d1baad --- /dev/null +++ b/pkgs/by-name/bu/buffer/package.nix @@ -0,0 +1,62 @@ +{ lib +, desktop-file-utils +, fetchFromGitLab +, gobject-introspection +, gtk4 +, gtksourceview5 +, libadwaita +, libspelling +, meson +, ninja +, pkg-config +, python3 +, stdenv +, wrapGAppsHook4 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "buffer"; + version = "0.9.2"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "cheywood"; + repo = "buffer"; + rev = finalAttrs.version; + hash = "sha256-EIyaFL2AEez8FIErL8+x7QNHnCYxj4mOuz7E+Svvh5I="; + }; + + nativeBuildInputs = [ + desktop-file-utils + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + gtksourceview5 + libadwaita + libspelling + (python3.withPackages (ps: with ps; [ + pygobject3 + ])) + ]; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PYTHONPATH : "$out/${python3.sitePackages}" + ) + ''; + + meta = with lib; { + description = "Minimal editing space for all those things that don't need keeping"; + homepage = "https://gitlab.gnome.org/cheywood/buffer"; + license = licenses.gpl3Plus; + mainProgram = "buffer"; + maintainers = with maintainers; [ michaelgrahamevans ]; + platforms = platforms.linux; + }; +}) From 145900ec1adb9fb6f271b3dbaba02a61255d12a4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 6 Jun 2024 18:38:09 +0000 Subject: [PATCH 113/121] surrealdb: 1.5.1 -> 1.5.2 --- pkgs/by-name/su/surrealdb/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/su/surrealdb/package.nix b/pkgs/by-name/su/surrealdb/package.nix index 0e598094c57c..b2042b70c833 100644 --- a/pkgs/by-name/su/surrealdb/package.nix +++ b/pkgs/by-name/su/surrealdb/package.nix @@ -16,16 +16,16 @@ let in rustPlatform.buildRustPackage rec { pname = "surrealdb"; - version = "1.5.1"; + version = "1.5.2"; src = fetchFromGitHub { owner = "surrealdb"; repo = "surrealdb"; rev = "v${version}"; - hash = "sha256-piLanhc59jfsXHoaY217nqPahuyV2xtvlT4aqFNjaxM="; + hash = "sha256-yXC1qlZTR5qWcbyfQ2jR2QlEnaxlNn0U3VGHdh2har0="; }; - cargoHash = "sha256-dqbq7irajpDWsxCt1B8W6G+ulPJowpu2ykXMqQoT1Sw="; + cargoHash = "sha256-npo/tlqnq8vzFeOfpVryzwJkFaDJ9WG1iwMgcv3tRCQ="; # error: linker `aarch64-linux-gnu-gcc` not found postPatch = '' From d816964f24d4a93620fc144e569f7b9b14e889c8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 6 Jun 2024 18:58:15 +0000 Subject: [PATCH 114/121] shopware-cli: 0.4.44 -> 0.4.47 --- pkgs/by-name/sh/shopware-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sh/shopware-cli/package.nix b/pkgs/by-name/sh/shopware-cli/package.nix index 0362ee92ed06..577288bb127e 100644 --- a/pkgs/by-name/sh/shopware-cli/package.nix +++ b/pkgs/by-name/sh/shopware-cli/package.nix @@ -9,18 +9,18 @@ buildGoModule rec { pname = "shopware-cli"; - version = "0.4.44"; + version = "0.4.47"; src = fetchFromGitHub { repo = "shopware-cli"; owner = "FriendsOfShopware"; rev = version; - hash = "sha256-i9FRt86kd2bUW5fyn/qRRSzXRSqUHTGlxOnzehEfnxU="; + hash = "sha256-9XCKrT+fOkC7Ft1/pGEgHjv3suXOf5NKYWqS702DtOA="; }; nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeCheckInputs = [ git dart-sass ]; - vendorHash = "sha256-j1zKugueG4QaCetwfZXnWqo5SciX2N/dr0VD4d0ITS4="; + vendorHash = "sha256-W/lIPcbCcHs+xRzAO8R49AE6oFLTLc6Ca5UlIdMLO5A="; postInstall = '' export HOME="$(mktemp -d)" From a12b6b0555c79c1d9b949ec01355d0565737e810 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Thu, 6 Jun 2024 20:55:15 +0200 Subject: [PATCH 115/121] pgrok: move to by-name --- .../networking => by-name/pg}/pgrok/build-deps/package.json | 0 .../pgrok/default.nix => by-name/pg/pgrok/package.nix} | 0 pkgs/{tools/networking => by-name/pg}/pgrok/update.sh | 2 +- pkgs/{tools/networking => by-name/pg}/pgrok/web.nix | 2 +- pkgs/development/node-packages/node-packages.json | 2 +- pkgs/development/node-packages/node-packages.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 -- 7 files changed, 5 insertions(+), 7 deletions(-) rename pkgs/{tools/networking => by-name/pg}/pgrok/build-deps/package.json (100%) rename pkgs/{tools/networking/pgrok/default.nix => by-name/pg/pgrok/package.nix} (100%) rename pkgs/{tools/networking => by-name/pg}/pgrok/update.sh (96%) rename pkgs/{tools/networking => by-name/pg}/pgrok/web.nix (85%) diff --git a/pkgs/tools/networking/pgrok/build-deps/package.json b/pkgs/by-name/pg/pgrok/build-deps/package.json similarity index 100% rename from pkgs/tools/networking/pgrok/build-deps/package.json rename to pkgs/by-name/pg/pgrok/build-deps/package.json diff --git a/pkgs/tools/networking/pgrok/default.nix b/pkgs/by-name/pg/pgrok/package.nix similarity index 100% rename from pkgs/tools/networking/pgrok/default.nix rename to pkgs/by-name/pg/pgrok/package.nix diff --git a/pkgs/tools/networking/pgrok/update.sh b/pkgs/by-name/pg/pgrok/update.sh similarity index 96% rename from pkgs/tools/networking/pgrok/update.sh rename to pkgs/by-name/pg/pgrok/update.sh index 5e2e082fd6a0..c19726de6c04 100755 --- a/pkgs/tools/networking/pgrok/update.sh +++ b/pkgs/by-name/pg/pgrok/update.sh @@ -9,7 +9,7 @@ cd "$(dirname "$0")" nixpkgs=../../../.. node_packages="$nixpkgs/pkgs/development/node-packages" -pgrok="$nixpkgs/pkgs/tools/networking/pgrok" +pgrok="$nixpkgs/pkgs/by-name/pg/pgrok" TARGET_VERSION_REMOTE=$(curl -s https://api.github.com/repos/pgrok/pgrok/releases/latest | jq -r ".tag_name") TARGET_VERSION=${TARGET_VERSION_REMOTE#v} diff --git a/pkgs/tools/networking/pgrok/web.nix b/pkgs/by-name/pg/pgrok/web.nix similarity index 85% rename from pkgs/tools/networking/pgrok/web.nix rename to pkgs/by-name/pg/pgrok/web.nix index 0cbe45e0e396..374f79fa8498 100644 --- a/pkgs/tools/networking/pgrok/web.nix +++ b/pkgs/by-name/pg/pgrok/web.nix @@ -5,7 +5,7 @@ , stdenvNoCC }: let - build-deps = nodePackages."pgrok-build-deps-../../tools/networking/pgrok/build-deps"; + build-deps = nodePackages."pgrok-build-deps-../../by-name/pg/pgrok/build-deps"; in stdenvNoCC.mkDerivation { pname = "pgrok-web"; diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 112add22d446..2c554bba297c 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -184,7 +184,7 @@ , "patch-package" , "peerflix" , "peerflix-server" -, {"pgrok-build-deps": "../../tools/networking/pgrok/build-deps"} +, {"pgrok-build-deps": "../../by-name/pg/pgrok/build-deps"} , "pnpm" , "poor-mans-t-sql-formatter-cli" , "postcss" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index a86e92020788..95e70668ca3f 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -87158,11 +87158,11 @@ in bypassCache = true; reconstructLock = true; }; - "pgrok-build-deps-../../tools/networking/pgrok/build-deps" = nodeEnv.buildNodePackage { + "pgrok-build-deps-../../by-name/pg/pgrok/build-deps" = nodeEnv.buildNodePackage { name = "pgrokd"; packageName = "pgrokd"; version = "1.4.1"; - src = ../../tools/networking/pgrok/build-deps; + src = ../../by-name/pg/pgrok/build-deps; dependencies = [ sources."@adobe/css-tools-4.3.3" sources."@alloc/quick-lru-5.2.0" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9875a9c8a183..eb9f1f065f3c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27713,8 +27713,6 @@ with pkgs; perf-tools = callPackage ../os-specific/linux/perf-tools { }; - pgrok = callPackage ../tools/networking/pgrok { }; - picoprobe-udev-rules = callPackage ../os-specific/linux/picoprobe-udev-rules { }; pipes = callPackage ../misc/screensavers/pipes { }; From 64b9766dbaf33bc3fc1d55cb4054d3f25e69b13d Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 6 Jun 2024 19:15:43 +0200 Subject: [PATCH 116/121] ascii: refactor --- pkgs/tools/text/ascii/default.nix | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/text/ascii/default.nix b/pkgs/tools/text/ascii/default.nix index ad9884faa17d..b48fe90c1bf8 100644 --- a/pkgs/tools/text/ascii/default.nix +++ b/pkgs/tools/text/ascii/default.nix @@ -1,14 +1,20 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchFromGitLab, gitUpdater, asciidoctor }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ascii"; version = "3.20"; - src = fetchurl { - url = "http://www.catb.org/~esr/ascii/${pname}-${version}.tar.gz"; - sha256 = "sha256-nm5X6mDUGagDoCTOY2YlTvtxYma4Tu3VjNmA2rzBFnQ="; + src = fetchFromGitLab { + owner = "esr"; + repo = "ascii"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-vkU5QZdUfr8aGKlAK+4d4rL+lKD/7C7E1Ul1LPgfZXo="; }; + nativeBuildInputs = [ + asciidoctor + ]; + prePatch = '' sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile ''; @@ -17,12 +23,15 @@ stdenv.mkDerivation rec { mkdir -vp "$out/bin" "$out/share/man/man1" ''; + passthru.updateScript = gitUpdater { }; + meta = with lib; { description = "Interactive ASCII name and synonym chart"; mainProgram = "ascii"; homepage = "http://www.catb.org/~esr/ascii/"; - license = licenses.bsd3; + changelog = "https://gitlab.com/esr/ascii/-/blob/${finalAttrs.version}/NEWS.adoc"; + license = licenses.bsd2; platforms = platforms.all; maintainers = [ maintainers.bjornfor ]; }; -} +}) From cc84ae23024ebf651f254ed2c1c78d417f370ac3 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 6 Jun 2024 19:16:53 +0200 Subject: [PATCH 117/121] ascii: 3.20 -> 3.30 --- pkgs/tools/text/ascii/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/text/ascii/default.nix b/pkgs/tools/text/ascii/default.nix index b48fe90c1bf8..6a280bc516f9 100644 --- a/pkgs/tools/text/ascii/default.nix +++ b/pkgs/tools/text/ascii/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "ascii"; - version = "3.20"; + version = "3.30"; src = fetchFromGitLab { owner = "esr"; repo = "ascii"; rev = "refs/tags/${finalAttrs.version}"; - hash = "sha256-vkU5QZdUfr8aGKlAK+4d4rL+lKD/7C7E1Ul1LPgfZXo="; + hash = "sha256-TE9YR5Va9tXaf2ZyNxz7d8lZRTgnD4Lz7FyqRDl1HNY="; }; nativeBuildInputs = [ From 49e8fe03c619aeab627476e693470c269b788d72 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 6 Jun 2024 19:56:29 +0000 Subject: [PATCH 118/121] cilium-cli: 0.16.8 -> 0.16.9 --- pkgs/applications/networking/cluster/cilium/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/cilium/default.nix b/pkgs/applications/networking/cluster/cilium/default.nix index a9bbc5a73d6a..6ae9b8eef5a1 100644 --- a/pkgs/applications/networking/cluster/cilium/default.nix +++ b/pkgs/applications/networking/cluster/cilium/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "cilium-cli"; - version = "0.16.8"; + version = "0.16.9"; src = fetchFromGitHub { owner = "cilium"; repo = pname; rev = "v${version}"; - hash = "sha256-SJWLWyjTdBilba+wsdpVS6i/OlQNlxZ5vjJTLheybSU="; + hash = "sha256-aER0VLYkHV0mPM4uBaKLPVmQ+Re5KUm8/01l87wMnF8="; }; vendorHash = null; From ac556616107cd3b26db0369e3192a35848795bab Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Thu, 6 Jun 2024 21:05:43 +0200 Subject: [PATCH 119/121] pgrok: migrate to pnpm.fetchDeps --- pkgs/by-name/pg/pgrok/build-deps/package.json | 38 - pkgs/by-name/pg/pgrok/package.nix | 35 +- pkgs/by-name/pg/pgrok/update.sh | 40 - pkgs/by-name/pg/pgrok/web.nix | 30 - .../node-packages/node-packages.json | 1 - .../node-packages/node-packages.nix | 711 +----------------- 6 files changed, 28 insertions(+), 827 deletions(-) delete mode 100644 pkgs/by-name/pg/pgrok/build-deps/package.json delete mode 100755 pkgs/by-name/pg/pgrok/update.sh delete mode 100644 pkgs/by-name/pg/pgrok/web.nix diff --git a/pkgs/by-name/pg/pgrok/build-deps/package.json b/pkgs/by-name/pg/pgrok/build-deps/package.json deleted file mode 100644 index b40bf794c6de..000000000000 --- a/pkgs/by-name/pg/pgrok/build-deps/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "pgrokd", - "scripts": { - "dev": "vite", - "build": "tsc && vite build --outDir=dist --emptyOutDir", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" - }, - "version": "1.4.1", - "dependencies": { - "axios": "~1.4.0", - "react": "~18.2.0", - "react-dom": "~18.2.0", - "react-router-dom": "~6.15.0", - "@headlessui/react": "~1.7.17", - "@heroicons/react": "~2.0.18", - "@tailwindcss/forms": "~0.5.4", - "@trivago/prettier-plugin-sort-imports": "~4.2.0", - "@types/node": "~20.5.1", - "@types/react": "~18.2.15", - "@types/react-dom": "~18.2.7", - "@typescript-eslint/eslint-plugin": "~6.0.0", - "@typescript-eslint/parser": "~6.0.0", - "@vitejs/plugin-react": "~4.0.3", - "autoprefixer": "~10.4.15", - "code-inspector-plugin": "v0.1.9", - "eslint": "~8.45.0", - "eslint-plugin-import": "~2.28.0", - "eslint-plugin-react": "~7.33.2", - "eslint-plugin-react-hooks": "~4.6.0", - "eslint-plugin-react-refresh": "~0.4.3", - "eslint-plugin-unicorn": "~48.0.1", - "postcss": "~8.4.28", - "prettier": "~3.0.2", - "tailwindcss": "~3.3.3", - "typescript": "~5.0.2", - "vite": "~4.4.5" - } -} diff --git a/pkgs/by-name/pg/pgrok/package.nix b/pkgs/by-name/pg/pgrok/package.nix index e5c9610521ce..0aed3b49f807 100644 --- a/pkgs/by-name/pg/pgrok/package.nix +++ b/pkgs/by-name/pg/pgrok/package.nix @@ -1,24 +1,38 @@ { lib , buildGoModule -, callPackage , fetchFromGitHub +, nix-update-script +, nodejs +, pnpm }: -buildGoModule rec { + +let pname = "pgrok"; version = "1.4.1"; - src = fetchFromGitHub { owner = "pgrok"; repo = "pgrok"; rev = "v${version}"; hash = "sha256-P36rpFi5J+dF6FrVaPhqupG00h4kwr0qumt4ehL/7vU="; }; +in - vendorHash = "sha256-X5FjzliIJdfJnNaUXBjv1uq5tyjMVjBbnLCBH/P0LFM="; +buildGoModule { + inherit pname version src; outputs = [ "out" "server" ]; - web = callPackage ./web.nix { inherit src version; }; + nativeBuildInputs = [ + nodejs + pnpm.configHook + ]; + + pnpmDeps = pnpm.fetchDeps { + inherit pname version src; + hash = "sha256-1PUcISW1pC9+5HZyI9SIDRyhos5f/6aW1wa2z0OKams="; + }; + + vendorHash = "sha256-X5FjzliIJdfJnNaUXBjv1uq5tyjMVjBbnLCBH/P0LFM="; ldflags = [ "-s" @@ -33,18 +47,23 @@ buildGoModule rec { "pgrokd/pgrokd" ]; - postPatch = '' + preBuild = '' + pushd pgrokd/web + + pnpm run build + + popd + # rename packages due to naming conflict mv pgrok/cli/ pgrok/pgrok/ mv pgrokd/cli/ pgrokd/pgrokd/ - cp -r ${web} pgrokd/pgrokd/dist ''; postInstall = '' moveToOutput bin/pgrokd $server ''; - passthru.updateScript = ./update.sh; + passthru.updateScript = nix-update-script { }; meta = { description = "Selfhosted TCP/HTTP tunnel, ngrok alternative, written in Go"; diff --git a/pkgs/by-name/pg/pgrok/update.sh b/pkgs/by-name/pg/pgrok/update.sh deleted file mode 100755 index c19726de6c04..000000000000 --- a/pkgs/by-name/pg/pgrok/update.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p nix curl nix-update jq - -set -euo pipefail - -nix-update - -cd "$(dirname "$0")" - -nixpkgs=../../../.. -node_packages="$nixpkgs/pkgs/development/node-packages" -pgrok="$nixpkgs/pkgs/by-name/pg/pgrok" - -TARGET_VERSION_REMOTE=$(curl -s https://api.github.com/repos/pgrok/pgrok/releases/latest | jq -r ".tag_name") -TARGET_VERSION=${TARGET_VERSION_REMOTE#v} - -SRC_FILE_BASE="https://raw.githubusercontent.com/pgrok/pgrok/v$TARGET_VERSION" - -# replace ^ versions with ~, replace outdir to dist -curl https://raw.githubusercontent.com/pgrok/pgrok/main/pgrokd/web/package.json \ - | jq "{name,scripts,version: \"${TARGET_VERSION}\",dependencies: (.dependencies + .devDependencies) }" \ - | sed -e 's/"\^/"~/g' -e 's/\.\.\/cli\/dist/dist/g' \ - > "$pgrok/build-deps/package.json.new" - -old_deps="$(jq '.dependencies' "$pgrok/build-deps/package.json")" -new_deps="$(jq '.dependencies' "$pgrok/build-deps/package.json.new")" - -if [[ "$old_deps" == "$new_deps" ]]; then - echo "package.json dependencies not changed, do simple version change" - - sed -e '/^ "pgrok-build-deps/,+3 s/version = ".*"/version = "'"$TARGET_VERSION"'"/' \ - --in-place "$node_packages"/node-packages.nix - mv build-deps/package.json{.new,} -else - echo "package.json dependencies changed, updating nodePackages" - mv build-deps/package.json{.new,} - - ./"$node_packages"/generate.sh -fi - diff --git a/pkgs/by-name/pg/pgrok/web.nix b/pkgs/by-name/pg/pgrok/web.nix deleted file mode 100644 index 374f79fa8498..000000000000 --- a/pkgs/by-name/pg/pgrok/web.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ src -, version -, nodejs -, nodePackages -, stdenvNoCC -}: -let - build-deps = nodePackages."pgrok-build-deps-../../by-name/pg/pgrok/build-deps"; -in -stdenvNoCC.mkDerivation { - pname = "pgrok-web"; - inherit version; - src = "${src}/pgrokd/web"; - - nativeBuildInputs = [ nodejs ]; - - buildPhase = '' - runHook preBuild - cp ${./build-deps/package.json} package.json - ln -s ${build-deps}/lib/node_modules/pgrokd/node_modules node_modules - npm run build - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - cp -r dist $out - runHook postInstall - ''; -} diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 2c554bba297c..95c447b357f5 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -184,7 +184,6 @@ , "patch-package" , "peerflix" , "peerflix-server" -, {"pgrok-build-deps": "../../by-name/pg/pgrok/build-deps"} , "pnpm" , "poor-mans-t-sql-formatter-cli" , "postcss" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index 95e70668ca3f..fb70d6ab2ebf 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -87158,716 +87158,7 @@ in bypassCache = true; reconstructLock = true; }; - "pgrok-build-deps-../../by-name/pg/pgrok/build-deps" = nodeEnv.buildNodePackage { - name = "pgrokd"; - packageName = "pgrokd"; - version = "1.4.1"; - src = ../../by-name/pg/pgrok/build-deps; - dependencies = [ - sources."@adobe/css-tools-4.3.3" - sources."@alloc/quick-lru-5.2.0" - sources."@ampproject/remapping-2.3.0" - sources."@babel/code-frame-7.24.6" - sources."@babel/compat-data-7.24.6" - (sources."@babel/core-7.24.6" // { - dependencies = [ - sources."@babel/generator-7.24.6" - sources."@babel/traverse-7.24.6" - sources."@babel/types-7.24.6" - sources."semver-6.3.1" - ]; - }) - sources."@babel/generator-7.17.7" - (sources."@babel/helper-compilation-targets-7.24.6" // { - dependencies = [ - sources."semver-6.3.1" - ]; - }) - sources."@babel/helper-environment-visitor-7.24.6" - (sources."@babel/helper-function-name-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - (sources."@babel/helper-hoist-variables-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - (sources."@babel/helper-module-imports-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - sources."@babel/helper-module-transforms-7.24.6" - sources."@babel/helper-plugin-utils-7.24.6" - (sources."@babel/helper-simple-access-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - (sources."@babel/helper-split-export-declaration-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - sources."@babel/helper-string-parser-7.24.6" - sources."@babel/helper-validator-identifier-7.24.6" - sources."@babel/helper-validator-option-7.24.6" - (sources."@babel/helpers-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - sources."@babel/highlight-7.24.6" - sources."@babel/parser-7.24.6" - sources."@babel/plugin-transform-react-jsx-self-7.24.6" - sources."@babel/plugin-transform-react-jsx-source-7.24.6" - (sources."@babel/template-7.24.6" // { - dependencies = [ - sources."@babel/types-7.24.6" - ]; - }) - (sources."@babel/traverse-7.23.2" // { - dependencies = [ - sources."@babel/generator-7.24.6" - sources."@babel/types-7.24.6" - ]; - }) - sources."@babel/types-7.17.0" - (sources."@cspotcode/source-map-support-0.8.1" // { - dependencies = [ - sources."@jridgewell/trace-mapping-0.3.9" - ]; - }) - sources."@esbuild/android-arm-0.18.20" - sources."@esbuild/android-arm64-0.18.20" - sources."@esbuild/android-x64-0.18.20" - sources."@esbuild/darwin-arm64-0.18.20" - sources."@esbuild/darwin-x64-0.18.20" - sources."@esbuild/freebsd-arm64-0.18.20" - sources."@esbuild/freebsd-x64-0.18.20" - sources."@esbuild/linux-arm-0.18.20" - sources."@esbuild/linux-arm64-0.18.20" - sources."@esbuild/linux-ia32-0.18.20" - sources."@esbuild/linux-loong64-0.18.20" - sources."@esbuild/linux-mips64el-0.18.20" - sources."@esbuild/linux-ppc64-0.18.20" - sources."@esbuild/linux-riscv64-0.18.20" - sources."@esbuild/linux-s390x-0.18.20" - sources."@esbuild/linux-x64-0.18.20" - sources."@esbuild/netbsd-x64-0.18.20" - sources."@esbuild/openbsd-x64-0.18.20" - sources."@esbuild/sunos-x64-0.18.20" - sources."@esbuild/win32-arm64-0.18.20" - sources."@esbuild/win32-ia32-0.18.20" - sources."@esbuild/win32-x64-0.18.20" - sources."@eslint-community/eslint-utils-4.4.0" - sources."@eslint-community/regexpp-4.10.1" - (sources."@eslint/eslintrc-2.1.4" // { - dependencies = [ - sources."globals-13.24.0" - ]; - }) - sources."@eslint/js-8.44.0" - sources."@headlessui/react-1.7.19" - sources."@heroicons/react-2.0.18" - sources."@humanwhocodes/config-array-0.11.14" - sources."@humanwhocodes/module-importer-1.0.1" - sources."@humanwhocodes/object-schema-2.0.3" - (sources."@isaacs/cliui-8.0.2" // { - dependencies = [ - sources."ansi-regex-6.0.1" - sources."strip-ansi-7.1.0" - ]; - }) - sources."@jridgewell/gen-mapping-0.3.5" - sources."@jridgewell/resolve-uri-3.1.2" - sources."@jridgewell/set-array-1.2.1" - sources."@jridgewell/source-map-0.3.6" - sources."@jridgewell/sourcemap-codec-1.4.15" - sources."@jridgewell/trace-mapping-0.3.25" - sources."@nodelib/fs.scandir-2.1.5" - sources."@nodelib/fs.stat-2.0.5" - sources."@nodelib/fs.walk-1.2.8" - sources."@remix-run/router-1.8.0" - sources."@swc/core-1.5.24" - sources."@swc/counter-0.1.3" - sources."@swc/helpers-0.5.11" - sources."@swc/types-0.1.7" - sources."@swc/wasm-1.5.24" - sources."@tailwindcss/forms-0.5.7" - sources."@tanstack/react-virtual-3.5.0" - sources."@tanstack/virtual-core-3.5.0" - sources."@trivago/prettier-plugin-sort-imports-4.2.1" - sources."@tsconfig/node10-1.0.11" - sources."@tsconfig/node12-1.0.11" - sources."@tsconfig/node14-1.0.3" - sources."@tsconfig/node16-1.0.4" - sources."@types/json-schema-7.0.15" - sources."@types/json5-0.0.29" - sources."@types/node-20.5.9" - sources."@types/normalize-package-data-2.4.4" - sources."@types/prop-types-15.7.12" - sources."@types/react-18.2.79" - sources."@types/react-dom-18.2.25" - sources."@types/semver-7.5.8" - sources."@typescript-eslint/eslint-plugin-6.0.0" - sources."@typescript-eslint/parser-6.0.0" - sources."@typescript-eslint/scope-manager-6.0.0" - sources."@typescript-eslint/type-utils-6.0.0" - sources."@typescript-eslint/types-6.0.0" - sources."@typescript-eslint/typescript-estree-6.0.0" - sources."@typescript-eslint/utils-6.0.0" - sources."@typescript-eslint/visitor-keys-6.0.0" - sources."@vitejs/plugin-react-4.0.4" - sources."@vue/compiler-core-3.4.27" - sources."@vue/compiler-dom-3.4.27" - sources."@vue/compiler-sfc-3.4.27" - sources."@vue/compiler-ssr-3.4.27" - sources."@vue/shared-3.4.27" - sources."acorn-8.11.3" - sources."acorn-jsx-5.3.2" - sources."acorn-walk-8.3.2" - sources."ajv-6.12.6" - sources."ansi-regex-5.0.1" - sources."ansi-styles-3.2.1" - sources."any-promise-1.3.0" - sources."anymatch-3.1.3" - sources."arg-5.0.2" - sources."argparse-2.0.1" - sources."array-buffer-byte-length-1.0.1" - sources."array-includes-3.1.8" - sources."array-union-2.1.0" - sources."array.prototype.findlastindex-1.2.5" - sources."array.prototype.flat-1.3.2" - sources."array.prototype.flatmap-1.3.2" - sources."array.prototype.tosorted-1.1.4" - sources."arraybuffer.prototype.slice-1.0.3" - sources."async-2.6.4" - sources."asynckit-0.4.0" - sources."autoprefixer-10.4.19" - sources."available-typed-arrays-1.0.7" - sources."axios-1.4.0" - sources."balanced-match-1.0.2" - sources."binary-extensions-2.3.0" - sources."brace-expansion-1.1.11" - sources."braces-3.0.3" - sources."browserslist-4.23.0" - sources."buffer-from-1.1.2" - sources."builtin-modules-3.3.0" - sources."call-bind-1.0.7" - sources."callsites-3.1.0" - sources."camelcase-css-2.0.1" - sources."caniuse-lite-1.0.30001627" - sources."chalk-2.4.2" - sources."chokidar-3.6.0" - sources."ci-info-3.9.0" - sources."clean-regexp-1.0.0" - sources."client-only-0.0.1" - (sources."code-inspector-core-0.1.9" // { - dependencies = [ - sources."ansi-styles-4.3.0" - sources."chalk-4.1.2" - sources."color-convert-2.0.1" - sources."color-name-1.1.4" - sources."has-flag-4.0.0" - sources."supports-color-7.2.0" - ]; - }) - (sources."code-inspector-plugin-0.1.9" // { - dependencies = [ - sources."ansi-styles-4.3.0" - sources."chalk-4.1.1" - sources."color-convert-2.0.1" - sources."color-name-1.1.4" - sources."has-flag-4.0.0" - sources."supports-color-7.2.0" - ]; - }) - sources."color-convert-1.9.3" - sources."color-name-1.1.3" - sources."combined-stream-1.0.8" - sources."commander-4.1.1" - sources."concat-map-0.0.1" - sources."convert-source-map-2.0.0" - sources."copy-anything-2.0.6" - sources."create-require-1.1.1" - sources."cross-spawn-7.0.3" - sources."cssesc-3.0.0" - sources."csstype-3.1.3" - sources."data-view-buffer-1.0.1" - sources."data-view-byte-length-1.0.1" - sources."data-view-byte-offset-1.0.0" - sources."debug-4.3.5" - sources."deep-is-0.1.4" - sources."define-data-property-1.1.4" - sources."define-properties-1.2.1" - sources."delayed-stream-1.0.0" - sources."detect-libc-1.0.3" - sources."didyoumean-1.2.2" - sources."diff-4.0.2" - sources."dir-glob-3.0.1" - sources."dlv-1.1.3" - sources."doctrine-3.0.0" - sources."eastasianwidth-0.2.0" - sources."electron-to-chromium-1.4.789" - sources."emoji-regex-9.2.2" - sources."entities-4.5.0" - sources."errno-0.1.8" - sources."error-ex-1.3.2" - sources."es-abstract-1.23.3" - sources."es-define-property-1.0.0" - sources."es-errors-1.3.0" - sources."es-iterator-helpers-1.0.19" - sources."es-object-atoms-1.0.0" - sources."es-set-tostringtag-2.0.3" - sources."es-shim-unscopables-1.0.2" - sources."es-to-primitive-1.2.1" - sources."esbuild-0.18.20" - sources."escalade-3.1.2" - sources."escape-string-regexp-1.0.5" - (sources."eslint-8.45.0" // { - dependencies = [ - sources."ansi-styles-4.3.0" - sources."chalk-4.1.2" - sources."color-convert-2.0.1" - sources."color-name-1.1.4" - sources."escape-string-regexp-4.0.0" - sources."eslint-scope-7.2.2" - sources."estraverse-5.3.0" - sources."glob-parent-6.0.2" - sources."globals-13.24.0" - sources."has-flag-4.0.0" - sources."supports-color-7.2.0" - ]; - }) - (sources."eslint-import-resolver-node-0.3.9" // { - dependencies = [ - sources."debug-3.2.7" - ]; - }) - (sources."eslint-module-utils-2.8.1" // { - dependencies = [ - sources."debug-3.2.7" - ]; - }) - (sources."eslint-plugin-import-2.28.1" // { - dependencies = [ - sources."debug-3.2.7" - sources."doctrine-2.1.0" - sources."semver-6.3.1" - ]; - }) - (sources."eslint-plugin-react-7.33.2" // { - dependencies = [ - sources."doctrine-2.1.0" - sources."estraverse-5.3.0" - sources."resolve-2.0.0-next.5" - sources."semver-6.3.1" - ]; - }) - sources."eslint-plugin-react-hooks-4.6.2" - sources."eslint-plugin-react-refresh-0.4.7" - (sources."eslint-plugin-unicorn-48.0.1" // { - dependencies = [ - sources."jsesc-3.0.2" - ]; - }) - sources."eslint-scope-5.1.1" - sources."eslint-visitor-keys-3.4.3" - sources."espree-9.6.1" - (sources."esquery-1.5.0" // { - dependencies = [ - sources."estraverse-5.3.0" - ]; - }) - (sources."esrecurse-4.3.0" // { - dependencies = [ - sources."estraverse-5.3.0" - ]; - }) - sources."estraverse-4.3.0" - sources."estree-walker-2.0.2" - sources."esutils-2.0.3" - sources."fast-deep-equal-3.1.3" - sources."fast-glob-3.3.2" - sources."fast-json-stable-stringify-2.1.0" - sources."fast-levenshtein-2.0.6" - sources."fastq-1.17.1" - sources."file-entry-cache-6.0.1" - sources."fill-range-7.1.1" - sources."find-up-5.0.0" - sources."flat-cache-3.2.0" - sources."flatted-3.3.1" - sources."follow-redirects-1.15.6" - sources."for-each-0.3.3" - sources."foreground-child-3.1.1" - sources."form-data-4.0.0" - sources."fraction.js-4.3.7" - sources."fs.realpath-1.0.0" - sources."fsevents-2.3.3" - sources."function-bind-1.1.2" - sources."function.prototype.name-1.1.6" - sources."functions-have-names-1.2.3" - sources."gensync-1.0.0-beta.2" - sources."get-intrinsic-1.2.4" - sources."get-symbol-description-1.0.2" - sources."glob-7.2.3" - sources."glob-parent-5.1.2" - sources."globals-11.12.0" - sources."globalthis-1.0.4" - sources."globby-11.1.0" - sources."gopd-1.0.1" - sources."graceful-fs-4.2.11" - sources."grapheme-splitter-1.0.4" - sources."graphemer-1.4.0" - sources."has-1.0.4" - sources."has-bigints-1.0.2" - sources."has-flag-3.0.0" - sources."has-property-descriptors-1.0.2" - sources."has-proto-1.0.3" - sources."has-symbols-1.0.3" - sources."has-tostringtag-1.0.2" - sources."hasown-2.0.2" - sources."hosted-git-info-2.8.9" - sources."iconv-lite-0.6.3" - sources."ignore-5.3.1" - sources."image-size-0.5.5" - sources."immutable-4.3.6" - sources."import-fresh-3.3.0" - sources."imurmurhash-0.1.4" - sources."indent-string-4.0.0" - sources."inflight-1.0.6" - sources."inherits-2.0.4" - sources."internal-slot-1.0.7" - sources."is-array-buffer-3.0.4" - sources."is-arrayish-0.2.1" - sources."is-async-function-2.0.0" - sources."is-bigint-1.0.4" - sources."is-binary-path-2.1.0" - sources."is-boolean-object-1.1.2" - sources."is-builtin-module-3.2.1" - sources."is-callable-1.2.7" - sources."is-core-module-2.13.1" - sources."is-data-view-1.0.1" - sources."is-date-object-1.0.5" - sources."is-extglob-2.1.1" - sources."is-finalizationregistry-1.0.2" - sources."is-fullwidth-code-point-3.0.0" - sources."is-generator-function-1.0.10" - sources."is-glob-4.0.3" - sources."is-map-2.0.3" - sources."is-negative-zero-2.0.3" - sources."is-number-7.0.0" - sources."is-number-object-1.0.7" - sources."is-path-inside-3.0.3" - sources."is-regex-1.1.4" - sources."is-set-2.0.3" - sources."is-shared-array-buffer-1.0.3" - sources."is-string-1.0.7" - sources."is-symbol-1.0.4" - sources."is-typed-array-1.1.13" - sources."is-weakmap-2.0.2" - sources."is-weakref-1.0.2" - sources."is-weakset-2.0.3" - sources."is-what-3.14.1" - sources."isarray-2.0.5" - sources."isexe-2.0.0" - sources."iterator.prototype-1.1.2" - sources."jackspeak-3.2.3" - sources."javascript-natural-sort-0.7.1" - sources."jiti-1.21.0" - sources."js-tokens-4.0.0" - sources."js-yaml-4.1.0" - sources."jsesc-2.5.2" - sources."json-buffer-3.0.1" - sources."json-parse-even-better-errors-2.3.1" - sources."json-schema-traverse-0.4.1" - sources."json-stable-stringify-without-jsonify-1.0.1" - sources."json5-2.2.3" - sources."jsx-ast-utils-3.3.5" - sources."keyv-4.5.4" - (sources."less-4.2.0" // { - dependencies = [ - sources."source-map-0.6.1" - ]; - }) - sources."levn-0.4.1" - sources."lightningcss-1.25.1" - sources."lilconfig-2.1.0" - sources."lines-and-columns-1.2.4" - sources."locate-path-6.0.0" - sources."lodash-4.17.21" - sources."lodash.merge-4.6.2" - sources."loose-envify-1.4.0" - sources."lru-cache-5.1.1" - sources."magic-string-0.30.10" - (sources."make-dir-2.1.0" // { - dependencies = [ - sources."pify-4.0.1" - sources."semver-5.7.2" - ]; - }) - sources."make-error-1.3.6" - sources."merge2-1.4.1" - sources."micromatch-4.0.7" - sources."mime-1.6.0" - sources."mime-db-1.52.0" - sources."mime-types-2.1.35" - sources."min-indent-1.0.1" - sources."mini-svg-data-uri-1.4.4" - sources."minimatch-3.1.2" - sources."minimist-1.2.8" - sources."minipass-7.1.2" - sources."mkdirp-0.5.6" - sources."ms-2.1.2" - sources."mz-2.7.0" - sources."nanoid-3.3.7" - sources."natural-compare-1.4.0" - sources."natural-compare-lite-1.4.0" - sources."needle-3.3.1" - sources."node-releases-2.0.14" - (sources."normalize-package-data-2.5.0" // { - dependencies = [ - sources."semver-5.7.2" - ]; - }) - sources."normalize-path-3.0.0" - sources."normalize-range-0.1.2" - sources."object-assign-4.1.1" - sources."object-hash-3.0.0" - sources."object-inspect-1.13.1" - sources."object-keys-1.1.1" - sources."object.assign-4.1.5" - sources."object.entries-1.1.8" - sources."object.fromentries-2.0.8" - sources."object.groupby-1.0.3" - sources."object.hasown-1.1.4" - sources."object.values-1.2.0" - sources."once-1.4.0" - sources."optionator-0.9.4" - sources."p-limit-3.1.0" - sources."p-locate-5.0.0" - sources."p-try-2.2.0" - sources."parent-module-1.0.1" - sources."parse-json-5.2.0" - sources."parse-node-version-1.0.1" - sources."path-exists-4.0.0" - sources."path-is-absolute-1.0.1" - sources."path-key-3.1.1" - sources."path-parse-1.0.7" - (sources."path-scurry-1.11.1" // { - dependencies = [ - sources."lru-cache-10.2.2" - ]; - }) - sources."path-type-4.0.0" - sources."picocolors-1.0.1" - sources."picomatch-2.3.1" - sources."pify-2.3.0" - sources."pirates-4.0.6" - sources."pluralize-8.0.0" - (sources."portfinder-1.0.32" // { - dependencies = [ - sources."debug-3.2.7" - ]; - }) - sources."possible-typed-array-names-1.0.0" - sources."postcss-8.4.38" - sources."postcss-import-15.1.0" - sources."postcss-js-4.0.1" - (sources."postcss-load-config-4.0.2" // { - dependencies = [ - sources."lilconfig-3.1.1" - ]; - }) - sources."postcss-nested-6.0.1" - sources."postcss-selector-parser-6.1.0" - sources."postcss-value-parser-4.2.0" - sources."prelude-ls-1.2.1" - sources."prettier-3.0.3" - sources."prop-types-15.8.1" - sources."proxy-from-env-1.1.0" - sources."prr-1.0.1" - sources."punycode-2.3.1" - sources."queue-microtask-1.2.3" - sources."react-18.2.0" - sources."react-dom-18.2.0" - sources."react-is-16.13.1" - sources."react-refresh-0.14.2" - sources."react-router-6.15.0" - sources."react-router-dom-6.15.0" - sources."read-cache-1.0.0" - (sources."read-pkg-5.2.0" // { - dependencies = [ - sources."type-fest-0.6.0" - ]; - }) - (sources."read-pkg-up-7.0.1" // { - dependencies = [ - sources."find-up-4.1.0" - sources."locate-path-5.0.0" - sources."p-limit-2.3.0" - sources."p-locate-4.1.0" - sources."type-fest-0.8.1" - ]; - }) - sources."readdirp-3.6.0" - sources."reflect.getprototypeof-1.0.6" - sources."regexp-tree-0.1.27" - sources."regexp.prototype.flags-1.5.2" - (sources."regjsparser-0.10.0" // { - dependencies = [ - sources."jsesc-0.5.0" - ]; - }) - sources."resolve-1.22.8" - sources."resolve-from-4.0.0" - sources."reusify-1.0.4" - sources."rimraf-3.0.2" - sources."rollup-3.29.4" - sources."run-parallel-1.2.0" - sources."safe-array-concat-1.1.2" - sources."safe-regex-test-1.0.3" - sources."safer-buffer-2.1.2" - sources."sass-1.77.4" - sources."sax-1.4.1" - sources."scheduler-0.23.2" - sources."semver-7.6.2" - sources."set-function-length-1.2.2" - sources."set-function-name-2.0.2" - sources."shebang-command-2.0.0" - sources."shebang-regex-3.0.0" - sources."side-channel-1.0.6" - sources."signal-exit-4.1.0" - sources."slash-3.0.0" - sources."source-map-0.5.7" - sources."source-map-js-1.2.0" - (sources."source-map-support-0.5.21" // { - dependencies = [ - sources."source-map-0.6.1" - ]; - }) - sources."spdx-correct-3.2.0" - sources."spdx-exceptions-2.5.0" - sources."spdx-expression-parse-3.0.1" - sources."spdx-license-ids-3.0.18" - (sources."string-width-5.1.2" // { - dependencies = [ - sources."ansi-regex-6.0.1" - sources."strip-ansi-7.1.0" - ]; - }) - (sources."string-width-cjs-4.2.3" // { - dependencies = [ - sources."emoji-regex-8.0.0" - ]; - }) - sources."string.prototype.matchall-4.0.11" - sources."string.prototype.trim-1.2.9" - sources."string.prototype.trimend-1.0.8" - sources."string.prototype.trimstart-1.0.8" - sources."strip-ansi-6.0.1" - sources."strip-ansi-cjs-6.0.1" - sources."strip-bom-3.0.0" - sources."strip-indent-3.0.0" - sources."strip-json-comments-3.1.1" - (sources."stylus-0.63.0" // { - dependencies = [ - sources."sax-1.3.0" - sources."source-map-0.7.4" - ]; - }) - (sources."sucrase-3.35.0" // { - dependencies = [ - sources."brace-expansion-2.0.1" - sources."glob-10.4.1" - sources."minimatch-9.0.4" - ]; - }) - sources."sugarss-4.0.1" - sources."supports-color-5.5.0" - sources."supports-preserve-symlinks-flag-1.0.0" - (sources."tailwindcss-3.3.7" // { - dependencies = [ - sources."glob-parent-6.0.2" - ]; - }) - (sources."terser-5.31.0" // { - dependencies = [ - sources."commander-2.20.3" - ]; - }) - sources."text-table-0.2.0" - sources."thenify-3.3.1" - sources."thenify-all-1.6.0" - sources."to-fast-properties-2.0.0" - sources."to-regex-range-5.0.1" - sources."ts-api-utils-1.3.0" - sources."ts-interface-checker-0.1.13" - (sources."ts-node-10.9.2" // { - dependencies = [ - sources."arg-4.1.3" - ]; - }) - (sources."tsconfig-paths-3.15.0" // { - dependencies = [ - sources."json5-1.0.2" - ]; - }) - sources."tslib-2.6.2" - sources."type-check-0.4.0" - sources."type-fest-0.20.2" - sources."typed-array-buffer-1.0.2" - sources."typed-array-byte-length-1.0.1" - sources."typed-array-byte-offset-1.0.2" - sources."typed-array-length-1.0.6" - sources."typescript-5.0.4" - sources."unbox-primitive-1.0.2" - sources."update-browserslist-db-1.0.16" - sources."uri-js-4.4.1" - sources."util-deprecate-1.0.2" - sources."v8-compile-cache-lib-3.0.1" - sources."validate-npm-package-license-3.0.4" - sources."vite-4.4.12" - sources."vite-code-inspector-plugin-0.1.9" - sources."webpack-code-inspector-plugin-0.1.9" - sources."which-2.0.2" - sources."which-boxed-primitive-1.0.2" - sources."which-builtin-type-1.1.3" - sources."which-collection-1.0.2" - sources."which-typed-array-1.1.15" - sources."word-wrap-1.2.5" - (sources."wrap-ansi-8.1.0" // { - dependencies = [ - sources."ansi-regex-6.0.1" - sources."ansi-styles-6.2.1" - sources."strip-ansi-7.1.0" - ]; - }) - (sources."wrap-ansi-cjs-7.0.0" // { - dependencies = [ - sources."ansi-styles-4.3.0" - sources."color-convert-2.0.1" - sources."color-name-1.1.4" - sources."emoji-regex-8.0.0" - sources."string-width-4.2.3" - ]; - }) - sources."wrappy-1.0.2" - sources."yallist-3.1.1" - sources."yaml-2.4.3" - sources."yn-3.1.1" - sources."yocto-queue-0.1.0" - ]; - buildInputs = globalBuildInputs; - meta = { - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; + pnpm = nodeEnv.buildNodePackage { name = "pnpm"; packageName = "pnpm"; From 0fdf6e29177a68cd6d4307f2a57b8cce109af0b3 Mon Sep 17 00:00:00 2001 From: PatrickDaG <58092422+PatrickDaG@users.noreply.github.com> Date: Thu, 6 Jun 2024 22:02:06 +0000 Subject: [PATCH 120/121] nixos/netbird: fix defaults (#314656) Co-authored-by: Sandro --- .../services/networking/netbird/coturn.nix | 7 +++- .../services/networking/netbird/server.nix | 33 +++++++++++++++---- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/networking/netbird/coturn.nix b/nixos/modules/services/networking/netbird/coturn.nix index 746d70a07250..29ff1e8fc15e 100644 --- a/nixos/modules/services/networking/netbird/coturn.nix +++ b/nixos/modules/services/networking/netbird/coturn.nix @@ -60,6 +60,7 @@ in default = null; description = '' The password of the user used by netbird to connect to the coturn server. + Be advised this will be world readable in the nix store. ''; }; @@ -142,7 +143,11 @@ in ]; }); - security.acme.certs.${cfg.domain}.postRun = optionalString cfg.useAcmeCertificates "systemctl restart coturn.service"; + security.acme.certs = mkIf cfg.useAcmeCertificates { + ${cfg.domain}.postRun = '' + systemctl restart coturn.service + ''; + }; networking.firewall = { allowedUDPPorts = cfg.openPorts; diff --git a/nixos/modules/services/networking/netbird/server.nix b/nixos/modules/services/networking/netbird/server.nix index a4de0fda6a13..2b6ad696646e 100644 --- a/nixos/modules/services/networking/netbird/server.nix +++ b/nixos/modules/services/networking/netbird/server.nix @@ -2,6 +2,7 @@ let inherit (lib) + mkDefault mkEnableOption mkIf mkOption @@ -15,7 +16,7 @@ in { meta = { - maintainers = with lib.maintainers; [ thubrecht ]; + maintainers = with lib.maintainers; [thubrecht patrickdag]; doc = ./server.md; }; @@ -41,26 +42,46 @@ in config = mkIf cfg.enable { services.netbird.server = { dashboard = { - inherit (cfg) enable domain enableNginx; + domain = mkDefault cfg.domain; + enable = mkDefault cfg.enable; + enableNginx = mkDefault cfg.enableNginx; managementServer = "https://${cfg.domain}"; }; management = { - inherit (cfg) enable domain enableNginx; + domain = mkDefault cfg.domain; + enable = mkDefault cfg.enable; + enableNginx = mkDefault cfg.enableNginx; } - // (optionalAttrs cfg.coturn.enable { + // (optionalAttrs cfg.coturn.enable rec { turnDomain = cfg.domain; turnPort = config.services.coturn.tls-listening-port; + # We cannot merge a list of attrsets so we have to redefine the whole list + settings = { + TURNConfig.Turns = mkDefault [ + { + Proto = "udp"; + URI = "turn:${turnDomain}:${builtins.toString turnPort}"; + Username = "netbird"; + Password = + if (cfg.coturn.password != null) + then cfg.coturn.password + else {_secret = cfg.coturn.passwordFile;}; + } + ]; + }; }); signal = { - inherit (cfg) enable domain enableNginx; + domain = mkDefault cfg.domain; + enable = mkDefault cfg.enable; + enableNginx = mkDefault cfg.enableNginx; }; coturn = { - inherit (cfg) domain; + domain = mkDefault cfg.domain; }; }; }; From db5f339eecfd56009fd1f6d147a0bb02e76f8de5 Mon Sep 17 00:00:00 2001 From: Yohann Boniface Date: Fri, 7 Jun 2024 01:07:51 +0200 Subject: [PATCH 121/121] fishPlugins.wakatime-fish: unbreak (#317803) --- pkgs/shells/fish/plugins/wakatime-fish.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/fish/plugins/wakatime-fish.nix b/pkgs/shells/fish/plugins/wakatime-fish.nix index f724eff4b08b..4c6915b7e0a6 100644 --- a/pkgs/shells/fish/plugins/wakatime-fish.nix +++ b/pkgs/shells/fish/plugins/wakatime-fish.nix @@ -17,8 +17,8 @@ buildFishPlugin rec { preFixup = '' substituteInPlace $out/share/fish/vendor_conf.d/wakatime.fish \ - --replace-fail "if type -p wakatime-cli" "if type -p ${lib.getExe wakatime-cli}" \ - --replace-fail "(type -p wakatime-cli)" "${lib.getExe wakatime-cli}" + --replace-fail "if type -p wakatime" "if type -p ${lib.getExe wakatime-cli}" \ + --replace-fail "(type -p wakatime)" "${lib.getExe wakatime-cli}" ''; meta = with lib; {