From 673076b0a89ce4f1638650e97a44b38061c384e6 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Wed, 25 Dec 2024 19:49:02 +0800 Subject: [PATCH 01/66] python2Packages.pygtk: fix build w/ `-fpermissive` ... and adopt the package: add @bryango to maintainers. --- pkgs/development/python2-modules/pygtk/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python2-modules/pygtk/default.nix b/pkgs/development/python2-modules/pygtk/default.nix index 9ba5ce952e17..066a00884ef0 100644 --- a/pkgs/development/python2-modules/pygtk/default.nix +++ b/pkgs/development/python2-modules/pygtk/default.nix @@ -58,7 +58,8 @@ buildPythonPackage rec { env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-ObjC" - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) " -lpython2.7"; + + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) " -lpython2.7" + + " -fpermissive"; # downgrade code errors to warnings installPhase = "installPhase"; @@ -94,5 +95,6 @@ buildPythonPackage rec { homepage = "https://gitlab.gnome.org/Archive/pygtk"; platforms = platforms.all; license = with licenses; [ lgpl21Plus ]; + maintainers = with lib.maintainers; [ bryango ]; }; } From c1a7fc76e7387c5c44305778cfd4661999fe6e1f Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Thu, 2 Jan 2025 15:32:12 +0100 Subject: [PATCH 02/66] facetimehd-calibration: fix strictDeps build --- pkgs/by-name/fa/facetimehd-calibration/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fa/facetimehd-calibration/package.nix b/pkgs/by-name/fa/facetimehd-calibration/package.nix index 8c843f5f564f..6a0d236e7361 100644 --- a/pkgs/by-name/fa/facetimehd-calibration/package.nix +++ b/pkgs/by-name/fa/facetimehd-calibration/package.nix @@ -58,7 +58,7 @@ stdenvNoCC.mkDerivation { dontUnpack = true; dontInstall = true; - buildInputs = [ unrar-wrapper ]; + nativeBuildInputs = [ unrar-wrapper ]; buildPhase = '' From c262d2ca8d15f2ec508b6984eb3b89a16ca20a35 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Sat, 11 Jan 2025 00:03:23 -0500 Subject: [PATCH 03/66] itk: 5.4.1 -> 5.4.2 --- pkgs/development/libraries/itk/5.x.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/itk/5.x.nix b/pkgs/development/libraries/itk/5.x.nix index 80a9c0123bf2..2398715a6ba3 100644 --- a/pkgs/development/libraries/itk/5.x.nix +++ b/pkgs/development/libraries/itk/5.x.nix @@ -1,5 +1,5 @@ import ./generic.nix rec { - version = "5.4.1"; + version = "5.4.2"; rev = "refs/tags/v${version}"; - sourceSha256 = "sha256-XzBmfyv7Bz7CD/RaNgL888R6rUossWLCS8QtbCLPBnY="; + sourceSha256 = "sha256-aQAqh0Z01JqKm78cmxkpC/+gbdx6wTJQh34c1lN+DR0="; } From dfc725314dd9195773f6791560caf0d4eaa51289 Mon Sep 17 00:00:00 2001 From: Petr Zahradnik Date: Sun, 19 Jan 2025 16:58:54 +0100 Subject: [PATCH 04/66] kubevpn: 2.2.10 -> 2.3.9 --- pkgs/by-name/ku/kubevpn/package.nix | 35 +++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ku/kubevpn/package.nix b/pkgs/by-name/ku/kubevpn/package.nix index 9faec05431a4..25637f2dd3b9 100644 --- a/pkgs/by-name/ku/kubevpn/package.nix +++ b/pkgs/by-name/ku/kubevpn/package.nix @@ -2,27 +2,54 @@ lib, buildGoModule, fetchFromGitHub, + go, }: buildGoModule rec { pname = "kubevpn"; - version = "2.2.10"; + version = "2.3.9"; src = fetchFromGitHub { owner = "KubeNetworks"; repo = "kubevpn"; rev = "v${version}"; - hash = "sha256-2LDV2aVdGuclVmOgIIwMYRKTMVLzlmNFI6xHFpxMRJw="; + hash = "sha256-g/N9Ho+s2AEA4iQSK48KGoTgsEMqv8ya3ZqCAhgVInc="; }; vendorHash = null; - # TODO investigate why some config tests are failing - doCheck = false; + tags = [ + "noassets" # required to build synthing gui without generating assets + ]; + + ldflags = [ + "-X github.com/wencaiwulue/kubevpn/v2/pkg/config.Version=v${version}" + "-X github.com/wencaiwulue/kubevpn/v2/cmd/kubevpn/cmds.OsArch=${go.GOOS}/${go.GOARCH}" + ]; + + # Resolve configuration tests, which access $HOME + preCheck = '' + export HOME=$(mktemp -d) + ''; + + # Disable network tests + checkFlags = [ + "-skip=^Test(Route|Functions|ByDumpClusterInfo|ByCreateSvc|Elegant)$" + ]; + + doInstallCheck = true; + + installCheckPhase = '' + runHook preInstallCheck + $out/bin/kubevpn help + $out/bin/kubevpn version | grep -e "Version: v${version}" + runHook postInstallCheck + ''; meta = with lib; { changelog = "https://github.com/KubeNetworks/kubevpn/releases/tag/${src.rev}"; description = "Create a VPN and connect to Kubernetes cluster network, access resources, and more"; + mainProgram = "kubevpn"; homepage = "https://github.com/KubeNetworks/kubevpn"; license = licenses.mit; maintainers = with maintainers; [ mig4ng ]; From 21548b6325511256de280abad14ea957cb8f832e Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Tue, 21 Jan 2025 15:39:44 +0100 Subject: [PATCH 05/66] rquickshare: 0.11.3 -> 0.11.4 --- pkgs/by-name/rq/rquickshare/package.nix | 6 +++--- .../remove-duplicate-versions-of-sys-metrics.patch | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/rq/rquickshare/package.nix b/pkgs/by-name/rq/rquickshare/package.nix index 1cd300f6ba0a..452ccab83135 100644 --- a/pkgs/by-name/rq/rquickshare/package.nix +++ b/pkgs/by-name/rq/rquickshare/package.nix @@ -39,13 +39,13 @@ let in rustPlatform.buildRustPackage rec { pname = "rquickshare" + (app-type-either "" "-legacy"); - version = "0.11.3"; + version = "0.11.4"; src = fetchFromGitHub { owner = "Martichou"; repo = "rquickshare"; tag = "v${version}"; - hash = "sha256-6gXt1UGcjOFInsCep56s3K5Zk/KIz2ZrFlmrgXP7/e8="; + hash = "sha256-Gq78vxM9hJ+dAHM3RAKHtkFIsoV0XQN4vNbOO3amvTs="; }; # from https://github.com/NixOS/nixpkgs/blob/04e40bca2a68d7ca85f1c47f00598abb062a8b12/pkgs/by-name/ca/cargo-tauri/test-app.nix#L23-L26 @@ -66,7 +66,7 @@ rustPlatform.buildRustPackage rec { cargoRoot = "app/${app-type}/src-tauri"; buildAndTestSubdir = cargoRoot; cargoPatches = [ ./remove-duplicate-versions-of-sys-metrics.patch ]; - cargoHash = app-type-either "sha256-R1RDBV8lcEuFdkh9vrNxFRSPSYVOWDvafPQAmQiJV2s=" "sha256-tgnSOICA/AFASIIlxnRoSjq5nx30Z7C6293bcvnWl0k="; + cargoHash = app-type-either "sha256-wraCzzC7YVCXEXBTd8c1cbtCdBunENpUMQ1vZGwfGMs=" "sha256-TBsHlFwbWWa2LEZdmDyz/9vWiFOXKX39PCsjW6OqEGY="; nativeBuildInputs = [ proper-cargo-tauri.hook diff --git a/pkgs/by-name/rq/rquickshare/remove-duplicate-versions-of-sys-metrics.patch b/pkgs/by-name/rq/rquickshare/remove-duplicate-versions-of-sys-metrics.patch index b5128e047838..af1f423857fd 100644 --- a/pkgs/by-name/rq/rquickshare/remove-duplicate-versions-of-sys-metrics.patch +++ b/pkgs/by-name/rq/rquickshare/remove-duplicate-versions-of-sys-metrics.patch @@ -1,5 +1,5 @@ diff --git a/app/legacy/src-tauri/Cargo.lock b/app/legacy/src-tauri/Cargo.lock -index 109db68..c3a70c6 100644 +index 1bba0ae..af24986 100644 --- a/app/legacy/src-tauri/Cargo.lock +++ b/app/legacy/src-tauri/Cargo.lock @@ -4138,7 +4138,7 @@ dependencies = [ @@ -45,7 +45,7 @@ index 109db68..c3a70c6 100644 "core-foundation-sys", "glob", diff --git a/app/legacy/src-tauri/Cargo.toml b/app/legacy/src-tauri/Cargo.toml -index 5468707..68ed47b 100644 +index b971c3d..44abf29 100644 --- a/app/legacy/src-tauri/Cargo.toml +++ b/app/legacy/src-tauri/Cargo.toml @@ -20,7 +20,7 @@ notify-rust = "4.10" @@ -58,7 +58,7 @@ index 5468707..68ed47b 100644 tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } diff --git a/app/main/src-tauri/Cargo.lock b/app/main/src-tauri/Cargo.lock -index c1f175c..7bf1450 100644 +index bc4753a..ed4c7e8 100644 --- a/app/main/src-tauri/Cargo.lock +++ b/app/main/src-tauri/Cargo.lock @@ -4182,7 +4182,7 @@ dependencies = [ @@ -102,7 +102,7 @@ index c1f175c..7bf1450 100644 name = "sys_metrics" version = "0.2.7" diff --git a/app/main/src-tauri/Cargo.toml b/app/main/src-tauri/Cargo.toml -index 90dcc88..56abae2 100644 +index 5653700..5120513 100644 --- a/app/main/src-tauri/Cargo.toml +++ b/app/main/src-tauri/Cargo.toml @@ -20,7 +20,7 @@ notify-rust = "4.10" @@ -111,6 +111,6 @@ index 90dcc88..56abae2 100644 serde_json = "1.0" -sys_metrics = "0.2" +sys_metrics = { git = "https://github.com/Martichou/sys_metrics" } - tauri = { version = "2.2", features = [ "devtools", "tray-icon", "native-tls-vendored"] } + tauri = { version = "2.2", features = [ "devtools", "tray-icon", "native-tls-vendored", "image-png"] } tauri-plugin-autostart = "2.2" tauri-plugin-process = "2.2" From 9f7e3c9d1faf2a45245826580883ce70f2dd3b2e Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Tue, 21 Jan 2025 15:44:50 +0100 Subject: [PATCH 06/66] rquickshare-legacy: don't set `updateScript` Even when it was set to null, r-ryantm still picked it up. --- pkgs/by-name/rq/rquickshare/package.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/rq/rquickshare/package.nix b/pkgs/by-name/rq/rquickshare/package.nix index 452ccab83135..9a2102a9affb 100644 --- a/pkgs/by-name/rq/rquickshare/package.nix +++ b/pkgs/by-name/rq/rquickshare/package.nix @@ -97,17 +97,16 @@ rustPlatform.buildRustPackage rec { libsoup_2_4 ]; - passthru.updateScript = - let + passthru = + # Don't set an update script for the legacy version + # so r-ryantm won't create two duplicate PRs + lib.optionalAttrs (app-type == "main") { updateScript = writeShellScript "update-rquickshare.sh" '' ${lib.getExe nix-update} rquickshare sed -i 's/version = "0.0.0";/' pkgs/by-name/rq/rquickshare/package.nix ${lib.getExe nix-update} rquickshare-legacy ''; - in - # Don't set an update script for the legacy version - # so r-ryantm won't create two duplicate PRs - app-type-either updateScript null; + }; meta = { description = "Rust implementation of NearbyShare/QuickShare from Android for Linux and macOS"; From c1094176e863f8ab9518942fe04324a5241ca6b3 Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Tue, 21 Jan 2025 14:43:41 +0100 Subject: [PATCH 07/66] pyquaternion: Patch for numpy2 support --- .../python-modules/pyquaternion/default.nix | 4 ++ .../pyquaternion/numpy2-repr.patch | 68 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 pkgs/development/python-modules/pyquaternion/numpy2-repr.patch diff --git a/pkgs/development/python-modules/pyquaternion/default.nix b/pkgs/development/python-modules/pyquaternion/default.nix index fab1e6c4f8cc..f3e1212d9847 100644 --- a/pkgs/development/python-modules/pyquaternion/default.nix +++ b/pkgs/development/python-modules/pyquaternion/default.nix @@ -19,6 +19,10 @@ buildPythonPackage rec { hash = "sha256-L0wT9DFUDRcmmN7OpmIDNvtQWQrM7iFnZt6R2xrJ+3A="; }; + patches = [ + ./numpy2-repr.patch + ]; + # The VERSION.txt file is required for setup.py # See: https://github.com/KieranWynn/pyquaternion/blob/master/setup.py#L14-L15 postPatch = '' diff --git a/pkgs/development/python-modules/pyquaternion/numpy2-repr.patch b/pkgs/development/python-modules/pyquaternion/numpy2-repr.patch new file mode 100644 index 000000000000..a420002a2303 --- /dev/null +++ b/pkgs/development/python-modules/pyquaternion/numpy2-repr.patch @@ -0,0 +1,68 @@ +diff --git a/pyquaternion/test/test_quaternion.py b/pyquaternion/test/test_quaternion.py +index f56afff..7178b52 100644 +--- a/pyquaternion/test/test_quaternion.py ++++ b/pyquaternion/test/test_quaternion.py +@@ -50,6 +50,16 @@ ALMOST_EQUAL_TOLERANCE = 13 + def randomElements(): + return tuple(np.random.uniform(-1, 1, 4)) + ++# In numpy 2, repr(np.float64(0.123)) becomes "np.float64(0.123)" ++# which means it's not directly a parseable float. In numpy 1 that ++# used to be the case. This hack papers over that ++def repr_np(x): ++ has_item = hasattr(x, 'item') ++ if isinstance(x, np.generic) and has_item: ++ return repr(x.item()) ++ else: ++ return repr(x) ++ + class TestQuaternionInitialisation(unittest.TestCase): + + def test_init_default(self): +@@ -77,7 +87,7 @@ class TestQuaternionInitialisation(unittest.TestCase): + def test_init_from_scalar(self): + s = random() + q1 = Quaternion(s) +- q2 = Quaternion(repr(s)) ++ q2 = Quaternion(repr_np(s)) + self.assertIsInstance(q1, Quaternion) + self.assertIsInstance(q2, Quaternion) + self.assertEqual(q1, Quaternion(s, 0.0, 0.0, 0.0)) +@@ -90,8 +100,8 @@ class TestQuaternionInitialisation(unittest.TestCase): + def test_init_from_elements(self): + a, b, c, d = randomElements() + q1 = Quaternion(a, b, c, d) +- q2 = Quaternion(repr(a), repr(b), repr(c), repr(d)) +- q3 = Quaternion(a, repr(b), c, d) ++ q2 = Quaternion(repr_np(a), repr_np(b), repr_np(c), repr_np(d)) ++ q3 = Quaternion(a, repr_np(b), c, d) + self.assertIsInstance(q1, Quaternion) + self.assertIsInstance(q2, Quaternion) + self.assertIsInstance(q3, Quaternion) +@@ -154,7 +164,7 @@ class TestQuaternionInitialisation(unittest.TestCase): + def test_init_from_explicit_elements(self): + e1, e2, e3, e4 = randomElements() + q1 = Quaternion(w=e1, x=e2, y=e3, z=e4) +- q2 = Quaternion(a=e1, b=repr(e2), c=e3, d=e4) ++ q2 = Quaternion(a=e1, b=repr_np(e2), c=e3, d=e4) + q3 = Quaternion(a=e1, i=e2, j=e3, k=e4) + q4 = Quaternion(a=e1) + self.assertIsInstance(q1, Quaternion) +@@ -525,7 +535,7 @@ class TestQuaternionArithmetic(unittest.TestCase): + q3 = q1 + self.assertEqual(q1 * s, q2) # post-multiply by scalar + self.assertEqual(s * q1, q2) # pre-multiply by scalar +- q3 *= repr(s) ++ q3 *= repr_np(s) + self.assertEqual(q3, q2) + + def test_multiply_incorrect_type(self): +@@ -595,7 +605,7 @@ class TestQuaternionArithmetic(unittest.TestCase): + with self.assertRaises(ZeroDivisionError): + s / q1 + +- q3 /= repr(s) ++ q3 /= repr_np(s) + self.assertEqual(q3, q2) + + with self.assertRaises(ZeroDivisionError): From 5db6786f743af2003666820fd1e164f400c54e9e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 23 Jan 2025 22:56:52 +0000 Subject: [PATCH 08/66] mc: 4.8.32 -> 4.8.33 Changes: https://midnight-commander.org/wiki/NEWS-4.8.33 --- pkgs/applications/file-managers/mc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/file-managers/mc/default.nix b/pkgs/applications/file-managers/mc/default.nix index 80e929eb7160..0dd6b8c9418e 100644 --- a/pkgs/applications/file-managers/mc/default.nix +++ b/pkgs/applications/file-managers/mc/default.nix @@ -27,11 +27,11 @@ stdenv.mkDerivation rec { pname = "mc"; - version = "4.8.32"; + version = "4.8.33"; src = fetchurl { url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz"; - hash = "sha256-TdyD0e3pryNjs+q5h/VLh89mGTJBEM4tOg5wlE0TWf4="; + hash = "sha256-yuFJ1C+ETlGF2MgdfbOROo+iFMZfhSIAqdiWtGivFkw="; }; nativeBuildInputs = From 4615c564a256367024cd66d5a2de12bb736d500b Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Sat, 25 Jan 2025 17:23:51 -0500 Subject: [PATCH 09/66] python312Packages.crc32c: 2.4 -> 2.7.1 --- pkgs/development/python-modules/crc32c/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/crc32c/default.nix b/pkgs/development/python-modules/crc32c/default.nix index 705a3d0654db..1aa1b5f97f97 100644 --- a/pkgs/development/python-modules/crc32c/default.nix +++ b/pkgs/development/python-modules/crc32c/default.nix @@ -8,8 +8,8 @@ }: buildPythonPackage rec { - version = "2.4"; pname = "crc32c"; + version = "2.7.1"; pyproject = true; disabled = pythonOlder "3.5"; @@ -18,16 +18,17 @@ buildPythonPackage rec { owner = "ICRAR"; repo = pname; tag = "v${version}"; - hash = "sha256-rWR2MtTLhqqvgdqEyevg/i8ZHM3OU1bJb27JkBx1J3w="; + hash = "sha256-WBFiAbdzV719vPdZkRGei2+Y33RroMZ7FeQmWo/OfE0="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Python software implementation and hardware API of CRC32C checksum algorithm"; homepage = "https://github.com/ICRAR/crc32c"; + changelog = "https://github.com/ICRAR/crc32c/blob/master/CHANGELOG.md"; license = lib.licenses.lgpl21; maintainers = with lib.maintainers; [ bcdarwin ]; }; From ced568bf30daea79411d4638bc5c5d4a2a80b951 Mon Sep 17 00:00:00 2001 From: Petr Zahradnik Date: Sun, 26 Jan 2025 16:24:48 +0100 Subject: [PATCH 10/66] geogram: 1.8.6 -> 1.9.2 --- pkgs/by-name/ge/geogram/package.nix | 52 ++++++++++++++++++----------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/ge/geogram/package.nix b/pkgs/by-name/ge/geogram/package.nix index 8dfff7a3d24a..eca1fd30a50e 100644 --- a/pkgs/by-name/ge/geogram/package.nix +++ b/pkgs/by-name/ge/geogram/package.nix @@ -1,30 +1,39 @@ { lib, stdenv, - fetchurl, fetchFromGitHub, - cmake, doxygen, zlib, python3Packages, + nix-update-script, + fetchpatch2, }: let + exploragram = fetchFromGitHub { + owner = "BrunoLevy"; + repo = "exploragram"; + rev = "3190f685653f8aa75b7c4604d008c59a999f1bb6"; + hash = "sha256-9ePCOyQWSxu12PtHFSxfoDcvTtxvYR3T68sU3cAfZiE="; + }; testdata = fetchFromGitHub { owner = "BrunoLevy"; repo = "geogram.data"; - rev = "43dd49054a78d9b3fb8ef729f48ab47a272c718c"; - hash = "sha256-F2Lyt4nEOczVYLz6WLny+YrsxNwREBGPkProN8NHFN4="; + rev = "ceab6179189d23713b902b6f26ea2ff36aea1515"; + hash = "sha256-zUmYI6+0IdDkglLzzWHS8ZKmc5O6aJ2X4IwRBouRIxI="; }; in stdenv.mkDerivation rec { pname = "geogram"; - version = "1.8.6"; + version = "1.9.2"; - src = fetchurl { - url = "https://github.com/BrunoLevy/geogram/releases/download/v${version}/geogram_${version}.tar.gz"; - hash = "sha256-Xqha5HVqD2Ao0z++RKcQdMZUmtMb5eZ1DMJEVrfNUzE="; + src = fetchFromGitHub { + owner = "BrunoLevy"; + repo = "geogram"; + tag = "v${version}"; + hash = "sha256-v7ChuE9F/z1MD5OUMiGXZWiGqjMauIka4sNXVDe/yYU="; + fetchSubmodules = true; }; outputs = [ @@ -65,11 +74,22 @@ stdenv.mkDerivation rec { zlib ]; + # exploragram library is not listed as submodule and must be copied manually + prePatch = '' + cp -r ${exploragram} ./src/lib/exploragram/ && chmod 755 ./src/lib/exploragram/ + ''; + patches = [ # This patch replaces the bundled (outdated) zlib with our zlib # Should be harmless, but if there are issues this patch can also be removed # Also check https://github.com/BrunoLevy/geogram/issues/49 for progress ./replace-bundled-zlib.patch + + # fixes https://github.com/BrunoLevy/geogram/issues/203, remove when 1.9.3 is released + (fetchpatch2 { + url = "https://github.com/BrunoLevy/geogram/commit/2e1b6fba499ddc55b2150a1f610cf9f8d4934c39.patch"; + hash = "sha256-t6Pocf3VT8HpKOSh1UKKa0QHpsZyFqlAng6ltiAfKA8="; + }) ]; postPatch = lib.optionalString stdenv.hostPlatform.isAarch64 '' @@ -90,16 +110,12 @@ stdenv.mkDerivation rec { checkPhase = let skippedTests = [ - # Failing tests as of version 1.8.3 - "FileConvert" - "Reconstruct" - "Remesh" - # Skip slow RVD test "RVD" - # Flaky as of 1.8.5 (SIGSEGV, possibly a use-after-free) - "Delaunay" + # Needs unfree library geogramplus with extended precision + # see https://github.com/BrunoLevy/geogram/wiki/GeogramPlus + "CSGplus" ]; in '' @@ -115,6 +131,8 @@ stdenv.mkDerivation rec { runHook postCheck ''; + passthru.updateScript = nix-update-script { }; + meta = with lib; { description = "Programming Library with Geometric Algorithms"; longDescription = '' @@ -125,10 +143,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/BrunoLevy/geogram"; license = licenses.bsd3; - # Broken on aarch64-linux as of version 1.8.3 - # See https://github.com/BrunoLevy/geogram/issues/74 - broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64; - platforms = [ "x86_64-linux" "aarch64-linux" From dba233a016e710f6f2ae4bfd14bb7e8659743987 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 27 Jan 2025 17:30:29 -0500 Subject: [PATCH 11/66] python312Packages.highdicom: 0.23.1 -> 0.24.0 --- pkgs/development/python-modules/highdicom/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/highdicom/default.nix b/pkgs/development/python-modules/highdicom/default.nix index fd3a9318b8ca..abd65d8e5a5b 100644 --- a/pkgs/development/python-modules/highdicom/default.nix +++ b/pkgs/development/python-modules/highdicom/default.nix @@ -11,6 +11,7 @@ pylibjpeg, pylibjpeg-libjpeg, setuptools, + typing-extensions, }: let @@ -23,7 +24,7 @@ let in buildPythonPackage rec { pname = "highdicom"; - version = "0.23.1"; + version = "0.24.0"; pyproject = true; disabled = pythonOlder "3.10"; @@ -32,7 +33,7 @@ buildPythonPackage rec { owner = "MGHComputationalPathology"; repo = "highdicom"; tag = "v${version}"; - hash = "sha256-LrsG85/bpqIEP++LgvyaVyw4tMsuUTtHNwWl7apuToM="; + hash = "sha256-1LRXJkltRLtPJ/NrFZVyjTusXfmcEVOTFEuq0gOI+yQ="; }; build-system = [ @@ -44,6 +45,7 @@ buildPythonPackage rec { pillow pillow-jpls pydicom + typing-extensions ]; optional-dependencies = { @@ -77,6 +79,7 @@ buildPythonPackage rec { "test_rgb_jpegls" "test_construction_autotile" "test_pixel_types_fractional" + "test_pixel_types_labelmap" ]; pythonImportsCheck = [ From 3379ddaa64b02d84fe13d264cb3fa5c772b6f1ac Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 23 Jan 2025 17:22:44 -0500 Subject: [PATCH 12/66] python312Packages.pylibjpeg-openjpeg: unbreak by lifting poetry-core version bounds --- pkgs/development/python-modules/pylibjpeg-openjpeg/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pylibjpeg-openjpeg/default.nix b/pkgs/development/python-modules/pylibjpeg-openjpeg/default.nix index e6d301908db7..ddd616eb0bfe 100644 --- a/pkgs/development/python-modules/pylibjpeg-openjpeg/default.nix +++ b/pkgs/development/python-modules/pylibjpeg-openjpeg/default.nix @@ -36,6 +36,8 @@ buildPythonPackage rec { rmdir lib/openjpeg cp -r ${openjpeg.src} lib/openjpeg chmod +rwX -R lib/openjpeg + + substituteInPlace pyproject.toml --replace-fail "poetry-core >=1.8,<2" "poetry-core" ''; dontUseCmakeConfigure = true; From 63a37dd5ed6093fe1e3a4fdf3823b5996cadc69f Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 27 Jan 2025 18:05:03 -0500 Subject: [PATCH 13/66] python312Packages.highdicom: restore pylibjpeg-openjpeg optional dependency --- pkgs/development/python-modules/highdicom/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/highdicom/default.nix b/pkgs/development/python-modules/highdicom/default.nix index fd3a9318b8ca..9310cb72eedd 100644 --- a/pkgs/development/python-modules/highdicom/default.nix +++ b/pkgs/development/python-modules/highdicom/default.nix @@ -10,6 +10,7 @@ pydicom, pylibjpeg, pylibjpeg-libjpeg, + pylibjpeg-openjpeg, setuptools, }: @@ -50,7 +51,7 @@ buildPythonPackage rec { libjpeg = [ pylibjpeg pylibjpeg-libjpeg - #pylibjpeg-openjpeg # broken on aarch64-linux + pylibjpeg-openjpeg ]; }; From 88d9c7ffb7b9b5cbd83c2f841b6d5048b34c87e4 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Tue, 28 Jan 2025 15:38:16 +0530 Subject: [PATCH 14/66] dprint-plugin-toml: 0.6.3 -> 0.6.4 Signed-off-by: phanirithvij --- pkgs/by-name/dp/dprint/plugins/dprint-plugin-toml.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/dp/dprint/plugins/dprint-plugin-toml.nix b/pkgs/by-name/dp/dprint/plugins/dprint-plugin-toml.nix index 3eef32b0e3bd..c45e02804f64 100644 --- a/pkgs/by-name/dp/dprint/plugins/dprint-plugin-toml.nix +++ b/pkgs/by-name/dp/dprint/plugins/dprint-plugin-toml.nix @@ -1,7 +1,7 @@ { mkDprintPlugin }: mkDprintPlugin { description = "TOML code formatter."; - hash = "sha256-aDfo/sKfOeNpyfd/4N1LgL1bObTTnviYrA8T7M/1KNs="; + hash = "sha256-4g/nu8Wo7oF+8OAyXOzs9MuGpt2RFGvD58Bafnrr3ZQ="; initConfig = { configExcludes = [ ]; configKey = "toml"; @@ -9,6 +9,6 @@ mkDprintPlugin { }; pname = "dprint-plugin-toml"; updateUrl = "https://plugins.dprint.dev/dprint/toml/latest.json"; - url = "https://plugins.dprint.dev/toml-0.6.3.wasm"; - version = "0.6.3"; + url = "https://plugins.dprint.dev/toml-0.6.4.wasm"; + version = "0.6.4"; } From 001ba37df7fe527b68d23d78ed5ff5d7f174ad7d Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:07:38 +0100 Subject: [PATCH 15/66] dotnet-repl: 0.1.216 -> 0.3.230 --- pkgs/by-name/do/dotnet-repl/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/do/dotnet-repl/package.nix b/pkgs/by-name/do/dotnet-repl/package.nix index be1790159839..746819980117 100644 --- a/pkgs/by-name/do/dotnet-repl/package.nix +++ b/pkgs/by-name/do/dotnet-repl/package.nix @@ -6,12 +6,12 @@ buildDotnetGlobalTool { pname = "dotnet-repl"; - version = "0.1.216"; + version = "0.3.230"; - dotnet-sdk = dotnetCorePackages.sdk_8_0; - dotnet-runtime = dotnetCorePackages.runtime_8_0; + dotnet-sdk = dotnetCorePackages.sdk_9_0; + dotnet-runtime = dotnetCorePackages.runtime_9_0; - nugetHash = "sha256-JHatCW+hl2792S+HYeEbbYbCIS+N4DmOctqXB/56/HU="; + nugetHash = "sha256-FtITkDZ0Qbjo0XvQ8psRlIsbEZhMjIhk8mVrHmUxlIg="; meta = { description = "A polyglot REPL built on .NET Interactive"; From 684ddcb6c22100f6d1ab73b3f40020d70076c69e Mon Sep 17 00:00:00 2001 From: Mia <59005594+kawaiiepic@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:33:07 -0500 Subject: [PATCH 16/66] Update ltc.nix --- pkgs/applications/misc/electrum/ltc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/misc/electrum/ltc.nix b/pkgs/applications/misc/electrum/ltc.nix index 8e2ad76b2655..4148adcc6bab 100644 --- a/pkgs/applications/misc/electrum/ltc.nix +++ b/pkgs/applications/misc/electrum/ltc.nix @@ -85,6 +85,7 @@ python3.pkgs.buildPythonApplication { ckcc-protocol keepkey trezor + distutils ] ++ lib.optionals enableQt [ pyqt5 From 635db320d080fc5decff99abf0d1689e846a18f5 Mon Sep 17 00:00:00 2001 From: Mia <59005594+kawaiiepic@users.noreply.github.com> Date: Wed, 29 Jan 2025 19:21:59 -0500 Subject: [PATCH 17/66] change sha256 to hash --- pkgs/applications/misc/electrum/ltc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/electrum/ltc.nix b/pkgs/applications/misc/electrum/ltc.nix index 4148adcc6bab..51df5b17b99d 100644 --- a/pkgs/applications/misc/electrum/ltc.nix +++ b/pkgs/applications/misc/electrum/ltc.nix @@ -51,7 +51,7 @@ python3.pkgs.buildPythonApplication { src = fetchurl { url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz"; - sha256 = "sha256-7F28cve+HD5JDK5igfkGD/NvTCfA33g+DmQJ5mwPM9Q="; + hash = "sha256-7F28cve+HD5JDK5igfkGD/NvTCfA33g+DmQJ5mwPM9Q="; }; postUnpack = '' From 5678e06cfbe5948355b9925b3416f0553c410a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Thu, 30 Jan 2025 13:32:55 +0000 Subject: [PATCH 18/66] aws-sso-util: builds on darwin --- pkgs/by-name/aw/aws-sso-util/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/aw/aws-sso-util/package.nix b/pkgs/by-name/aw/aws-sso-util/package.nix index c083f6254933..093c47dded24 100644 --- a/pkgs/by-name/aw/aws-sso-util/package.nix +++ b/pkgs/by-name/aw/aws-sso-util/package.nix @@ -38,6 +38,6 @@ python3Packages.buildPythonApplication rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ cterence ]; mainProgram = "aws-sso-util"; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.darwin; }; } From a0cdf6f14ae84237dcea65a3bd964db79ecd938b Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Sun, 2 Feb 2025 22:33:42 +0100 Subject: [PATCH 19/66] fittrackee: 0.8.12 -> 0.9.1 --- pkgs/by-name/fi/fittrackee/package.nix | 42 ++++++++------------------ 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/pkgs/by-name/fi/fittrackee/package.nix b/pkgs/by-name/fi/fittrackee/package.nix index 7cd75f7c6c99..ac28150d0c21 100644 --- a/pkgs/by-name/fi/fittrackee/package.nix +++ b/pkgs/by-name/fi/fittrackee/package.nix @@ -1,60 +1,39 @@ { fetchFromGitHub, - fetchPypi, lib, stdenv, postgresql, postgresqlTestHook, - python3, + python3Packages, }: -let - python = python3.override { - self = python; - packageOverrides = self: super: { - sqlalchemy = super.sqlalchemy_1_4; - - flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec { - version = "3.0.5"; - - src = fetchPypi { - pname = "flask_sqlalchemy"; - inherit version; - hash = "sha256-xXZeWMoUVAG1IQbA9GF4VpJDxdolVWviwjHsxghnxbE="; - }; - }); - }; - }; - -in -python.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "fittrackee"; - version = "0.8.12"; + version = "0.9.1"; pyproject = true; src = fetchFromGitHub { owner = "SamR1"; repo = "FitTrackee"; tag = "v${version}"; - hash = "sha256-knhXFhBb11KWidw6ym8EdZJJ9CDSU4TarupegYJx94A="; + hash = "sha256-ZWSlJijW8vNuUtCHhEhmZPcEygcRrtHQUOQQKZdf868="; }; build-system = [ - python.pkgs.poetry-core + python3Packages.poetry-core ]; pythonRelaxDeps = [ "authlib" "flask-limiter" - "gunicorn" - "pyjwt" + "flask-migrate" + "nh3" "pyopenssl" "pytz" "sqlalchemy" - "ua-parser" ]; dependencies = - with python.pkgs; + with python3Packages; [ authlib babel @@ -69,6 +48,8 @@ python.pkgs.buildPythonApplication rec { gpxpy gunicorn humanize + jsonschema + nh3 psycopg2-binary pyjwt pyopenssl @@ -83,7 +64,7 @@ python.pkgs.buildPythonApplication rec { pythonImportsCheck = [ "fittrackee" ]; - nativeCheckInputs = with python.pkgs; [ + nativeCheckInputs = with python3Packages; [ pytestCheckHook freezegun postgresqlTestHook @@ -103,6 +84,7 @@ python.pkgs.buildPythonApplication rec { preCheck = '' export TMP=$TMPDIR + export UI_URL=http://0.0.0.0:5000 ''; meta = { From 83f30e8ab718a8ba6fa3728838e31baac845a79d Mon Sep 17 00:00:00 2001 From: Keenan Weaver Date: Mon, 3 Feb 2025 16:11:55 -0600 Subject: [PATCH 20/66] doomrunner: move to by-name --- .../default.nix => by-name/do/doomrunner/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{games/doom-ports/doomrunner/default.nix => by-name/do/doomrunner/package.nix} (100%) diff --git a/pkgs/games/doom-ports/doomrunner/default.nix b/pkgs/by-name/do/doomrunner/package.nix similarity index 100% rename from pkgs/games/doom-ports/doomrunner/default.nix rename to pkgs/by-name/do/doomrunner/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b27d548a1a4..4afc00c1e261 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16091,8 +16091,6 @@ with pkgs; doomseeker = qt5.callPackage ../games/doom-ports/doomseeker { }; - doomrunner = qt5.callPackage ../games/doom-ports/doomrunner { }; - enyo-launcher = libsForQt5.callPackage ../games/doom-ports/enyo-launcher { }; slade = callPackage ../games/doom-ports/slade { From 9779a3e4ad55bc21f9273737535433c37c92b48f Mon Sep 17 00:00:00 2001 From: Keenan Weaver Date: Mon, 3 Feb 2025 17:48:13 -0600 Subject: [PATCH 21/66] doomrunner: 1.8.3 -> 1.9.0, cleanup --- pkgs/by-name/do/doomrunner/package.nix | 53 +++++++++----------------- 1 file changed, 17 insertions(+), 36 deletions(-) diff --git a/pkgs/by-name/do/doomrunner/package.nix b/pkgs/by-name/do/doomrunner/package.nix index c61055e190ab..2bb8b59e6a1a 100644 --- a/pkgs/by-name/do/doomrunner/package.nix +++ b/pkgs/by-name/do/doomrunner/package.nix @@ -1,30 +1,26 @@ { lib, stdenv, - qtbase, - qmake, - makeDesktopItem, - wrapQtAppsHook, - imagemagick, + kdePackages, fetchFromGitHub, }: stdenv.mkDerivation (finalAttrs: { pname = "doomrunner"; - version = "1.8.3"; + version = "1.9.0"; src = fetchFromGitHub { owner = "Youda008"; repo = "DoomRunner"; - rev = "v${finalAttrs.version}"; - hash = "sha256-NpNhl3cGXpxI8Qu4l8PjojCCXCZdGBEkBzz5XxLm/mY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-rCoMTPGjIFAcNncBGg1IMdUahzjH0WlFZBZS0UmNI/g="; }; - buildInputs = [ qtbase ]; + buildInputs = [ kdePackages.qtbase ]; + nativeBuildInputs = [ - qmake - wrapQtAppsHook - imagemagick + kdePackages.qmake + kdePackages.wrapQtAppsHook ]; makeFlags = [ @@ -32,35 +28,20 @@ stdenv.mkDerivation (finalAttrs: { ]; postInstall = '' - mkdir -p $out/{bin,share/applications} + mkdir -p $out/{bin,share/applications,share/icons/hicolor/128x128/apps} + install -Dm444 $src/Install/XDG/DoomRunner.128x128.png $out/share/icons/hicolor/128x128/apps/DoomRunner.png + install -Dm444 $src/Install/XDG/DoomRunner.desktop $out/share/applications/DoomRunner.desktop install -Dm755 $out/usr/bin/DoomRunner $out/bin/DoomRunner - - for size in 16 24 32 48 64 128; do - mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps - convert -background none -resize "$size"x"$size" $PWD/Resources/DoomRunner.ico -flatten $out/share/icons/hicolor/"$size"x"$size"/apps/DoomRunner.png - done; - - install -m 444 -D "$desktopItem/share/applications/"* -t $out/share/applications/ rm -rf $out/usr ''; - desktopItem = makeDesktopItem { - name = "DoomRunner"; - desktopName = "DoomRunner"; - comment = "Preset-oriented graphical launcher of ZDoom and derivatives"; - categories = [ "Game" ]; - icon = "DoomRunner"; - type = "Application"; - exec = "DoomRunner"; - }; - - meta = with lib; { - description = "Graphical launcher of ZDoom and derivatives"; + meta = { + description = "Preset-oriented graphical launcher of various ported Doom engines"; mainProgram = "DoomRunner"; - homepage = "https://github.com/Youda008/DoomRunner/"; + homepage = "https://github.com/Youda008/DoomRunner"; changelog = "https://github.com/Youda008/DoomRunner/blob/${finalAttrs.src.rev}/changelog.txt"; - license = licenses.gpl3Only; - platforms = platforms.linux; - maintainers = with maintainers; [ keenanweaver ]; + license = lib.licenses.gpl3Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ keenanweaver ]; }; }) From 3048cdc6db45d44dc33852175dffb71959bfb3fc Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 4 Feb 2025 22:18:47 +0000 Subject: [PATCH 22/66] vcmi: 1.6.4 -> 1.6.5 Changes: https://github.com/vcmi/vcmi/blob/1.6.5/ChangeLog.md --- pkgs/games/vcmi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/vcmi/default.nix b/pkgs/games/vcmi/default.nix index bb5db2ae9644..a1fc7168f0fd 100644 --- a/pkgs/games/vcmi/default.nix +++ b/pkgs/games/vcmi/default.nix @@ -29,14 +29,14 @@ stdenv.mkDerivation rec { pname = "vcmi"; - version = "1.6.4"; + version = "1.6.5"; src = fetchFromGitHub { owner = "vcmi"; repo = "vcmi"; rev = version; fetchSubmodules = true; - hash = "sha256-1GNoHNPeSeVGfK9mgXiuaMVxwnAM0n26V56pk5IHEs4="; + hash = "sha256-VUwCo9OTTI8tsX7P1voq/1VVGrNxYM+OXkWhXWqoT60="; }; nativeBuildInputs = [ From ff585410544889b6f864c04f10c4619f3193689e Mon Sep 17 00:00:00 2001 From: Jonas Fierlings Date: Thu, 23 Jan 2025 16:22:30 +0100 Subject: [PATCH 23/66] committed: 1.1.2 -> 1.1.5 --- pkgs/by-name/co/committed/package.nix | 40 +++++++++++++++++++++------ 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/co/committed/package.nix b/pkgs/by-name/co/committed/package.nix index e8b54bb2f08f..8cde17a8e4f3 100644 --- a/pkgs/by-name/co/committed/package.nix +++ b/pkgs/by-name/co/committed/package.nix @@ -3,13 +3,13 @@ stdenv, fetchFromGitHub, rustPlatform, - darwin, - testers, + versionCheckHook, nix-update-script, - committed, + git, + libz, }: let - version = "1.1.2"; + version = "1.1.5"; in rustPlatform.buildRustPackage { pname = "committed"; @@ -19,15 +19,37 @@ rustPlatform.buildRustPackage { owner = "crate-ci"; repo = "committed"; tag = "v${version}"; - hash = "sha256-dBNtzKqaaqJrKMNwamUY0DO9VCVqDyf45lT82nOn8UM="; + hash = "sha256-puv64/btSEkxGNhGGkh2A08gI+EIHWjC+s+QQDKj/ZQ="; }; - useFetchCargoVendor = true; - cargoHash = "sha256-gWMS14945qa6pCe+Olg89gOaoZwRKsqJtG0jKe5/7e0="; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ]; + useFetchCargoVendor = true; + cargoHash = "sha256-fW3TqI26xggUKfzI11YCO8bpotd3aO6pdu1CHhtiShs="; + + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + # Until upstream bumps the libz-sys dependency to >= 1.1.15 the build fails on unstable + # nixpkgs with macOS, because the following commit is not part of libz-sys < 1.1.15: + # https://github.com/madler/zlib/commit/4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9 + # Instead, use the nixpkgs libz so that libz-sys does not have to be built. + libz + ]; + + nativeCheckInputs = [ + git + ]; + + # Ensure libgit2 can read user.name and user.email for `git_signature_default`. + # https://github.com/crate-ci/committed/blob/v1.1.5/crates/committed/tests/cmd.rs#L126 + preCheck = '' + export HOME=$(mktemp -d) + git config --global user.name nobody + git config --global user.email no@where + ''; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; passthru = { - tests.version = testers.testVersion { package = committed; }; updateScript = nix-update-script { }; }; From c28495a152a3bac20bf4110bb2f1cf72ff6cbc73 Mon Sep 17 00:00:00 2001 From: goatastronaut0212 Date: Sat, 8 Feb 2025 07:57:50 +0700 Subject: [PATCH 24/66] unciv: 4.15.8 -> 4.15.9-patch1 --- pkgs/by-name/un/unciv/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/un/unciv/package.nix b/pkgs/by-name/un/unciv/package.nix index 39b11f9620de..17ddf1fd0f06 100644 --- a/pkgs/by-name/un/unciv/package.nix +++ b/pkgs/by-name/un/unciv/package.nix @@ -11,7 +11,7 @@ libXxf86vm, }: let - version = "4.15.8"; + version = "4.15.9-patch1"; desktopItem = makeDesktopItem { name = "unciv"; @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://github.com/yairm210/Unciv/releases/download/${version}/Unciv.jar"; - hash = "sha256-Ytov2n7XieMQtc0C0uvMzpamLHhhTEtkKSfoU88Mlaw="; + hash = "sha256-HozoaTAKS/pO/xFLCoXUvrvEEd85oMMxkZ6fFDgSfvQ="; }; dontUnpack = true; From a7e4b22c912de8549bb489d021852d5a5448b607 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Sun, 9 Feb 2025 13:11:10 -0300 Subject: [PATCH 25/66] vinegar: 1.7.8 -> 1.8.0 --- pkgs/by-name/vi/vinegar/package.nix | 157 +++++++++++++++++++++------- 1 file changed, 119 insertions(+), 38 deletions(-) diff --git a/pkgs/by-name/vi/vinegar/package.nix b/pkgs/by-name/vi/vinegar/package.nix index b88e26336c06..68cfa1ae0974 100644 --- a/pkgs/by-name/vi/vinegar/package.nix +++ b/pkgs/by-name/vi/vinegar/package.nix @@ -1,81 +1,162 @@ { lib, buildGoModule, - fetchFromGitHub, - fetchurl, - pkg-config, - xorg, - wayland, - vulkan-headers, wine64Packages, + fetchpatch, + fetchFromGitHub, + glib, + makeBinaryWrapper, + pkg-config, + gtk4, + libadwaita, libGL, libxkbcommon, - makeBinaryWrapper, + vulkan-headers, + vulkan-loader, + wayland, + winetricks, + xorg, + symlinkJoin, + cairo, + gdk-pixbuf, + graphene, + pango, nix-update-script, }: let - wine = (wine64Packages.staging.override { embedInstallers = true; }).overrideAttrs (oldAttrs: { - patches = oldAttrs.patches or [ ] ++ [ - (fetchurl { - name = "loader-prefer-winedllpath.patch"; - url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/3e07606350d803fa386eb4c358836a230819380d/patches/wine/loader-prefer-winedllpath.patch"; - hash = "sha256-89wnr2rIbyw490hHwckB9g1GKCXm6BERnplfwEUlNOg="; - }) - ]; - }); + wine = + (wine64Packages.staging.override { + dbusSupport = true; + embedInstallers = true; + pulseaudioSupport = true; + x11Support = true; + waylandSupport = true; + }).overrideAttrs + (oldAttrs: { + # https://github.com/flathub/org.vinegarhq.Vinegar/blob/1a42384ff0c5670504415190301c20e89601bbad/wine.yml#L31 + # --with-wayland is added by waylandSupport = true; + configureFlags = oldAttrs.configureFlags or [ ] ++ [ + "--disable-tests" + "--disable-win16" + "--with-dbus" + "--with-pulse" + "--with-x" + "--without-oss" + ]; + + patches = oldAttrs.patches or [ ] ++ [ + (fetchpatch { + name = "loader-prefer-winedllpath.patch"; + url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/3e07606350d803fa386eb4c358836a230819380d/patches/wine/loader-prefer-winedllpath.patch"; + hash = "sha256-89wnr2rIbyw490hHwckB9g1GKCXm6BERnplfwEUlNOg="; + }) + ]; + }); in buildGoModule rec { pname = "vinegar"; - version = "1.7.8"; + version = "1.8.0"; src = fetchFromGitHub { owner = "vinegarhq"; repo = "vinegar"; - rev = "v${version}"; - hash = "sha256-qyBYPBXQgjnGA2LnghPFOd0AO6+sQcZPzPI0rlJvGHE="; + tag = "v${version}"; + hash = "sha256-eAQ5qlBY1PmpijEu7mPmCBFbAIA30ABcbirdBljAmTQ="; }; - vendorHash = "sha256-SDJIoZf/Doa/NrEBRL1WXvz+fyTDGRyG0bvQ0S8A+KA="; + vendorHash = "sha256-NLNAUf99psBq8PayorBH1DT6o9wZyKwx9ab+TtpKU50="; nativeBuildInputs = [ - pkg-config + glib makeBinaryWrapper + pkg-config ]; buildInputs = [ + gtk4 + libadwaita + libGL + libxkbcommon + vulkan-headers + vulkan-loader + wayland + wine + winetricks xorg.libX11 xorg.libXcursor xorg.libXfixes - wayland - vulkan-headers - wine - libGL - libxkbcommon ]; - ldflags = [ - "-s" - "-w" - ]; + buildPhase = '' + runHook preBuild - makeFlags = [ - "PREFIX=${placeholder "out"}" - ]; + make PREFIX=$out + + runHook postBuild + ''; + + # Add getGoDirs to checkPhase since it is not being provided by the buildPhase + preCheck = '' + getGoDirs() { + local type; + type="$1" + if [ -n "$subPackages" ]; then + echo "$subPackages" | sed "s,\(^\| \),\1./,g" + else + find . -type f -name \*$type.go -exec dirname {} \; | grep -v "/vendor/" | sort --unique | grep -v "$exclude" + fi + } + ''; + + preInstall = '' + substituteInPlace Makefile --replace-fail 'gtk-update-icon-cache' '${lib.getExe' gtk4 "gtk4-update-icon-cache"}' + ''; + + installPhase = '' + runHook preInstall + + make PREFIX=$out install + + runHook postInstall + ''; postInstall = '' wrapProgram $out/bin/vinegar \ - --prefix PATH : ${lib.makeBinPath [ wine ]} + --prefix PATH : ${ + lib.makeBinPath [ + wine + winetricks + ] + } \ + --prefix PUREGOTK_LIB_FOLDER : ${passthru.libraryPath}/lib ''; - passthru.updateScript = nix-update-script { }; + passthru = { + libraryPath = symlinkJoin { + name = "vinegar-puregotk-lib-folder"; + paths = [ + cairo + glib.out + graphene + gdk-pixbuf + gtk4 + libadwaita + pango.out + vulkan-loader + ]; + }; + + updateScript = nix-update-script { }; + }; meta = { - description = "Open-source, minimal, configurable, fast bootstrapper for running Roblox on Linux"; - homepage = "https://github.com/vinegarhq/vinegar"; changelog = "https://github.com/vinegarhq/vinegar/releases/tag/v${version}"; + description = "Open-source, minimal, configurable, fast bootstrapper for running Roblox Studio on Linux"; + homepage = "https://github.com/vinegarhq/vinegar"; license = lib.licenses.gpl3Only; - maintainers = with lib.maintainers; [ HeitorAugustoLN ]; mainProgram = "vinegar"; + maintainers = with lib.maintainers; [ HeitorAugustoLN ]; platforms = [ "x86_64-linux" ]; + sourceProvenance = [ lib.sourceTypes.fromSource ]; }; } From c1dc9af8778d7a250149dde8ac2449e3e8ee3ad8 Mon Sep 17 00:00:00 2001 From: Jacob Koziej Date: Sun, 9 Feb 2025 14:00:07 -0500 Subject: [PATCH 26/66] python3Packages.miss-hit-core: init at 0.9.44 --- .../python-modules/miss-hit-core/default.nix | 66 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/miss-hit-core/default.nix diff --git a/pkgs/development/python-modules/miss-hit-core/default.nix b/pkgs/development/python-modules/miss-hit-core/default.nix new file mode 100644 index 000000000000..16791600d35b --- /dev/null +++ b/pkgs/development/python-modules/miss-hit-core/default.nix @@ -0,0 +1,66 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + coverage, + python, + setuptools, +}: + +buildPythonPackage rec { + pname = "miss-hit-core"; + version = "0.9.44"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "florianschanda"; + repo = "miss_hit"; + tag = version; + hash = "sha256-dJZIleDWmdarhmxoKvQxWvI/Tmx9pSCNlgFXj5NFIUc="; + }; + + build-system = [ setuptools ]; + + configurePhase = '' + runHook preConfigure + + cp setup_gpl.py setup.py + mkdir -p miss_hit_core/resources/assets + cp docs/style.css miss_hit_core/resources + cp docs/assets/* miss_hit_core/resources/assets + + runHook postConfigure + ''; + + nativeCheckInputs = [ + coverage + ]; + + checkPhase = '' + runHook preCheck + + cd tests + ${python.interpreter} ./run.py --suite=style + ${python.interpreter} ./run.py --suite=metrics + + runHook postCheck + ''; + + pythonImportsCheck = [ + "miss_hit_core" + ]; + + meta = { + description = "Code formatting and code metrics for programs written in the MATLAB/Simulink and Octave languages"; + homepage = "https://misshit.org/"; + changelog = "https://github.com/florianschanda/miss_hit/releases/tag/${version}"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ + jacobkoziej + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ff3cd8bb7b51..5b77a3ae1d33 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8254,6 +8254,8 @@ self: super: with self; { misoc = callPackage ../development/python-modules/misoc { }; + miss-hit-core = callPackage ../development/python-modules/miss-hit-core { }; + mistletoe = callPackage ../development/python-modules/mistletoe { }; mistune = callPackage ../development/python-modules/mistune { }; From de86157b276b626504a661b4b30df7d7cd15a70b Mon Sep 17 00:00:00 2001 From: Jacob Koziej Date: Sun, 9 Feb 2025 14:01:01 -0500 Subject: [PATCH 27/66] python3Packages.miss-hit: init at 0.9.44 --- .../python-modules/miss-hit/default.nix | 67 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 69 insertions(+) create mode 100644 pkgs/development/python-modules/miss-hit/default.nix diff --git a/pkgs/development/python-modules/miss-hit/default.nix b/pkgs/development/python-modules/miss-hit/default.nix new file mode 100644 index 000000000000..9bd34bb606e8 --- /dev/null +++ b/pkgs/development/python-modules/miss-hit/default.nix @@ -0,0 +1,67 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + coverage, + miss-hit-core, + python, + setuptools, +}: + +buildPythonPackage rec { + pname = "miss-hit"; + version = "0.9.44"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "florianschanda"; + repo = "miss_hit"; + tag = version; + hash = "sha256-dJZIleDWmdarhmxoKvQxWvI/Tmx9pSCNlgFXj5NFIUc="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + miss-hit-core + ]; + + configurePhase = '' + runHook preConfigure + + cp setup_agpl.py setup.py + + runHook postConfigure + ''; + + nativeCheckInputs = [ + coverage + ]; + + checkPhase = '' + runHook preCheck + + cd tests + ${python.interpreter} ./run.py + + runHook postCheck + ''; + + pythonImportsCheck = [ + "miss_hit" + ]; + + meta = { + description = "Static analysis and other utilities for programs written in the MATLAB/Simulink and Octave languages"; + homepage = "https://misshit.org/"; + changelog = "https://github.com/florianschanda/miss_hit/releases/tag/${version}"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ + jacobkoziej + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5b77a3ae1d33..e6063f70c8ee 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8254,6 +8254,8 @@ self: super: with self; { misoc = callPackage ../development/python-modules/misoc { }; + miss-hit = callPackage ../development/python-modules/miss-hit { }; + miss-hit-core = callPackage ../development/python-modules/miss-hit-core { }; mistletoe = callPackage ../development/python-modules/mistletoe { }; From 555cce646552384f2851128e77178c27b04c66ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Kurucz?= Date: Sun, 9 Feb 2025 20:11:18 +0100 Subject: [PATCH 28/66] fex: 2501 -> 2502 --- pkgs/by-name/fe/fex/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fe/fex/package.nix b/pkgs/by-name/fe/fex/package.nix index cc01318bfb1f..6aea2949863f 100644 --- a/pkgs/by-name/fe/fex/package.nix +++ b/pkgs/by-name/fe/fex/package.nix @@ -12,13 +12,13 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: rec { pname = "fex"; - version = "2501"; + version = "2502"; src = fetchFromGitHub { owner = "FEX-Emu"; repo = "FEX"; tag = "FEX-${version}"; - hash = "sha256-9YOKLck4LIhTiAz+aCkOR3Eo1v02GK/YTQ98MuBSihI="; + hash = "sha256-w+Kqk+IQsVNbOqYDTpxDeoPyeIgqX2IfZv9zqAJEMVc="; fetchSubmodules = true; }; From 2f705bc10e677b53e2f7bcd4a428a68f7a871395 Mon Sep 17 00:00:00 2001 From: Guillaume Racicot Date: Tue, 11 Feb 2025 14:00:10 -0500 Subject: [PATCH 29/66] vcpkg-tool: 2024-07-10 -> 2025-01-29 --- pkgs/by-name/vc/vcpkg-tool/package.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/vc/vcpkg-tool/package.nix b/pkgs/by-name/vc/vcpkg-tool/package.nix index d67d50871d11..a5204fbbf2fd 100644 --- a/pkgs/by-name/vc/vcpkg-tool/package.nix +++ b/pkgs/by-name/vc/vcpkg-tool/package.nix @@ -24,13 +24,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "vcpkg-tool"; - version = "2024-07-10"; + version = "2025-01-29"; src = fetchFromGitHub { owner = "microsoft"; repo = "vcpkg-tool"; rev = finalAttrs.version; - hash = "sha256-P/ARKMfZdrfO+24rBrRm9k8tkBPSJJBqH509+iarNkw="; + hash = "sha256-eCeq7HKjK0aTsPqFP8jP6gIrzcF6YBEJG1MdbQse42Y="; }; nativeBuildInputs = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4bd5e4cf7f83..e64fcd868850 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -357,7 +357,7 @@ with pkgs; }; vcpkg-tool = callPackage ../by-name/vc/vcpkg-tool/package.nix { - fmt = fmt_10; + fmt = fmt_11; }; r3ctl = qt5.callPackage ../tools/misc/r3ctl { }; From df3ffb239df3783eb69423bd2eacc4babf8f9a54 Mon Sep 17 00:00:00 2001 From: Guillaume Racicot Date: Tue, 11 Feb 2025 14:00:32 -0500 Subject: [PATCH 30/66] vcpkg: 2024.12.16 -> 2025.01.13 --- pkgs/by-name/vc/vcpkg/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/vc/vcpkg/package.nix b/pkgs/by-name/vc/vcpkg/package.nix index 14bc32e5cc2c..41116767cbcb 100644 --- a/pkgs/by-name/vc/vcpkg/package.nix +++ b/pkgs/by-name/vc/vcpkg/package.nix @@ -9,13 +9,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "vcpkg"; - version = "2024.12.16"; + version = "2025.01.13"; src = fetchFromGitHub { owner = "microsoft"; repo = "vcpkg"; rev = finalAttrs.version; - hash = "sha256-4Xk71JPklq7qwYXPE+EzNvD5rTfPvgyV/O7nSvgjKVo="; + hash = "sha256-T4ihf3PC53Ch33E/MF5VR3DWKHty4PryInnkiQdHdGM="; leaveDotGit = true; postFetch = '' cd "$out" From ff6fa7faae5b9b8198fc598e3a76e49c8f008504 Mon Sep 17 00:00:00 2001 From: Guillaume Racicot Date: Tue, 11 Feb 2025 16:56:37 -0500 Subject: [PATCH 31/66] vcpkg-tool: set VCPKG_ROOT in testWrapper --- pkgs/by-name/vc/vcpkg-tool/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/vc/vcpkg-tool/package.nix b/pkgs/by-name/vc/vcpkg-tool/package.nix index a5204fbbf2fd..5dc50afcfce6 100644 --- a/pkgs/by-name/vc/vcpkg-tool/package.nix +++ b/pkgs/by-name/vc/vcpkg-tool/package.nix @@ -178,6 +178,7 @@ stdenv.mkDerivation (finalAttrs: { passthru.tests = { testWrapper = runCommand "vcpkg-tool-test-wrapper" { buildInputs = [ finalAttrs.finalPackage ]; } '' export NIX_VCPKG_DEBUG_PRINT_ENVVARS=true + export VCPKG_ROOT=. vcpkg --x-packages-root="test" --x-install-root="test2" contact > "$out" cat "$out" | head -n 4 | diff - ${writeText "vcpkg-tool-test-wrapper-expected" '' From d68c0aedd61cb06a4bb1143b605fca8936a91a06 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Mon, 10 Feb 2025 17:37:06 -0300 Subject: [PATCH 32/66] vinegar: 1.8.0 -> 1.8.1 --- pkgs/by-name/vi/vinegar/package.nix | 31 +++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/vi/vinegar/package.nix b/pkgs/by-name/vi/vinegar/package.nix index 68cfa1ae0974..8a6bb7daf1fc 100644 --- a/pkgs/by-name/vi/vinegar/package.nix +++ b/pkgs/by-name/vi/vinegar/package.nix @@ -7,20 +7,20 @@ glib, makeBinaryWrapper, pkg-config, + cairo, + gdk-pixbuf, + graphene, gtk4, libadwaita, libGL, libxkbcommon, + pango, vulkan-headers, vulkan-loader, wayland, winetricks, xorg, symlinkJoin, - cairo, - gdk-pixbuf, - graphene, - pango, nix-update-script, }: let @@ -33,7 +33,7 @@ let waylandSupport = true; }).overrideAttrs (oldAttrs: { - # https://github.com/flathub/org.vinegarhq.Vinegar/blob/1a42384ff0c5670504415190301c20e89601bbad/wine.yml#L31 + # https://github.com/flathub/org.vinegarhq.Vinegar/blob/a3c2f1249dec9548bd870027f55edcc58343b685/wine.yml#L31-L38 # --with-wayland is added by waylandSupport = true; configureFlags = oldAttrs.configureFlags or [ ] ++ [ "--disable-tests" @@ -55,16 +55,16 @@ let in buildGoModule rec { pname = "vinegar"; - version = "1.8.0"; + version = "1.8.1"; src = fetchFromGitHub { owner = "vinegarhq"; repo = "vinegar"; tag = "v${version}"; - hash = "sha256-eAQ5qlBY1PmpijEu7mPmCBFbAIA30ABcbirdBljAmTQ="; + hash = "sha256-7rc6LKZx0OOZDedtTpHIQT4grx1FejRiVnJnVDUddy4="; }; - vendorHash = "sha256-NLNAUf99psBq8PayorBH1DT6o9wZyKwx9ab+TtpKU50="; + vendorHash = "sha256-TZhdwHom4DTgLs4z/eADeoKakMtyFrvVljDg4JJp7dc="; nativeBuildInputs = [ glib @@ -73,10 +73,15 @@ buildGoModule rec { ]; buildInputs = [ + cairo + gdk-pixbuf + glib.out + graphene gtk4 libadwaita libGL libxkbcommon + pango.out vulkan-headers vulkan-loader wayland @@ -87,6 +92,10 @@ buildGoModule rec { xorg.libXfixes ]; + postPatch = '' + substituteInPlace Makefile --replace-fail 'gtk-update-icon-cache' '${lib.getExe' gtk4 "gtk4-update-icon-cache"}' + ''; + buildPhase = '' runHook preBuild @@ -108,10 +117,6 @@ buildGoModule rec { } ''; - preInstall = '' - substituteInPlace Makefile --replace-fail 'gtk-update-icon-cache' '${lib.getExe' gtk4 "gtk4-update-icon-cache"}' - ''; - installPhase = '' runHook preInstall @@ -136,9 +141,9 @@ buildGoModule rec { name = "vinegar-puregotk-lib-folder"; paths = [ cairo + gdk-pixbuf glib.out graphene - gdk-pixbuf gtk4 libadwaita pango.out From 442263f4dceee65cf25b90771224dcc5e376bafe Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 13 Feb 2025 10:08:03 +0900 Subject: [PATCH 33/66] libtas: add binutils and ffmpeg to PATH libTAS invokes readelf and ffmpeg, it does not crash when they are not present, however certain features like video encoding stop working without any error message showing up in the GUI. --- pkgs/by-name/li/libtas/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libtas/package.nix b/pkgs/by-name/li/libtas/package.nix index 7a3ab2e7a155..f36e9391a07d 100644 --- a/pkgs/by-name/li/libtas/package.nix +++ b/pkgs/by-name/li/libtas/package.nix @@ -9,6 +9,7 @@ , lua5_3 , qt5 , file +, binutils , makeDesktopItem }: @@ -39,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: { postFixup = '' wrapProgram $out/bin/libTAS \ - --suffix PATH : ${lib.makeBinPath [ file ]} \ + --suffix PATH : ${lib.makeBinPath [ file binutils ffmpeg ]} \ --set-default LIBTAS_SO_PATH $out/lib/libtas.so ''; From d5a328b021cc62ce3baecb3895b3a83e77d16c31 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:36:57 -0300 Subject: [PATCH 34/66] cosmic-osd: add updateScript --- pkgs/by-name/co/cosmic-osd/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index 005826ba40b6..08f238b40665 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -7,6 +7,7 @@ pulseaudio, udev, wayland, + nix-update-script, }: rustPlatform.buildRustPackage rec { @@ -33,6 +34,15 @@ rustPlatform.buildRustPackage rec { env.POLKIT_AGENT_HELPER_1 = "/run/wrappers/bin/polkit-agent-helper-1"; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version" + "unstable" + "--version-regex" + "epoch-(.*)" + ]; + }; + meta = with lib; { homepage = "https://github.com/pop-os/cosmic-osd"; description = "OSD for the COSMIC Desktop Environment"; From eee668ebffdecc26cf616df39e746aa940de9af0 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:40:07 -0300 Subject: [PATCH 35/66] cosmic-osd: 1.0.0-alpha.2 -> 1.0.0-alpha.5.1 --- pkgs/by-name/co/cosmic-osd/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index 08f238b40665..9062b3843d60 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -12,17 +12,17 @@ rustPlatform.buildRustPackage rec { pname = "cosmic-osd"; - version = "1.0.0-alpha.2"; + version = "1.0.0-alpha.5.1"; src = fetchFromGitHub { owner = "pop-os"; repo = "cosmic-osd"; rev = "epoch-${version}"; - hash = "sha256-JDdVFNTJI9O88lLKB1esJE4sk7ZZnTMilQRZSAgnTqs="; + hash = "sha256-a5wzCHfp+dhtEkXsJOeEs2ZkmooSWIDGymeAdrXKE+U="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Db1a1FusUdO7rQb0jfznaFNaJjdS9XSDGCMuzV1D79A="; + cargoHash = "sha256-hJC0t8R+cdPWzdpxHA+j7en4IrhZXt5LM3S2V6/bps0="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ From 0184c903f20791e3be5204d0adf07fbded475bdb Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:41:25 -0300 Subject: [PATCH 36/66] cosmic-osd: use `libcosmicAppHook` --- pkgs/by-name/co/cosmic-osd/package.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index 9062b3843d60..e61913a07dee 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -2,11 +2,9 @@ lib, fetchFromGitHub, rustPlatform, - pkg-config, - libxkbcommon, + libcosmicAppHook, pulseaudio, udev, - wayland, nix-update-script, }: @@ -24,11 +22,10 @@ rustPlatform.buildRustPackage rec { useFetchCargoVendor = true; cargoHash = "sha256-hJC0t8R+cdPWzdpxHA+j7en4IrhZXt5LM3S2V6/bps0="; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ libcosmicAppHook ]; + buildInputs = [ - libxkbcommon pulseaudio - wayland udev ]; From d052af6b3bb9bfe0114e97a3f89457b269166faf Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:42:34 -0300 Subject: [PATCH 37/66] cosmic-osd: remove `with lib` from meta --- pkgs/by-name/co/cosmic-osd/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index e61913a07dee..19e8e36e2af6 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -40,12 +40,12 @@ rustPlatform.buildRustPackage rec { ]; }; - meta = with lib; { + meta = { homepage = "https://github.com/pop-os/cosmic-osd"; description = "OSD for the COSMIC Desktop Environment"; mainProgram = "cosmic-osd"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ nyabinary ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ nyabinary ]; + platforms = lib.platforms.linux; }; } From 5f4d0356539ef1758a7e8b6040d52a590b8c9dae Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:43:28 -0300 Subject: [PATCH 38/66] cosmic-osd: add HeitorAugustoLN to maintainers --- pkgs/by-name/co/cosmic-osd/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index 19e8e36e2af6..10d5475daba8 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -45,7 +45,10 @@ rustPlatform.buildRustPackage rec { description = "OSD for the COSMIC Desktop Environment"; mainProgram = "cosmic-osd"; license = lib.licenses.gpl3Only; - maintainers = with lib.maintainers; [ nyabinary ]; + maintainers = with lib.maintainers; [ + nyabinary + HeitorAugustoLN + ]; platforms = lib.platforms.linux; }; } From 2a985d384cd6ebcbcd97c9e16ee1635aeb900817 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 13 Feb 2025 13:44:34 -0300 Subject: [PATCH 39/66] cosmic-osd: replace `rev` with `tag` in `fetchFromGitHub` --- pkgs/by-name/co/cosmic-osd/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/co/cosmic-osd/package.nix b/pkgs/by-name/co/cosmic-osd/package.nix index 10d5475daba8..0d6f6ade81c7 100644 --- a/pkgs/by-name/co/cosmic-osd/package.nix +++ b/pkgs/by-name/co/cosmic-osd/package.nix @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "pop-os"; repo = "cosmic-osd"; - rev = "epoch-${version}"; + tag = "epoch-${version}"; hash = "sha256-a5wzCHfp+dhtEkXsJOeEs2ZkmooSWIDGymeAdrXKE+U="; }; From f4940c881402caefa9fec0c6ff01e78d1427a8ac Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 13 Feb 2025 18:14:46 -0500 Subject: [PATCH 40/66] fastjet: fix compilation --- pkgs/by-name/fa/fastjet/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/fa/fastjet/package.nix b/pkgs/by-name/fa/fastjet/package.nix index f64e8acad983..4ca40d8af55d 100644 --- a/pkgs/by-name/fa/fastjet/package.nix +++ b/pkgs/by-name/fa/fastjet/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, python ? null, withPython ? false, }: @@ -15,6 +16,13 @@ stdenv.mkDerivation rec { hash = "sha256-zBdUcb+rhla4xhg6jl6a0F1fdQbkbzISqagjCQW49qM="; }; + patches = [ + (fetchpatch { + url = "https://gitlab.com/fastjet/fastjet/-/commit/57ff0184c7cf578bbcdee3667aeaa64288cbae1a.diff"; + hash = "sha256-uz8q7s+YAmbB4oXB+wyaSLo4gWSbEEPdATGDBrxT0vg="; + }) + ]; + postPatch = '' patchShebangs --build fastjet-config.in ''; From 72dd50b0ee7a993be91dc428ef8e1de7f56ef5a9 Mon Sep 17 00:00:00 2001 From: nayeko Date: Thu, 30 Jan 2025 22:10:39 +0800 Subject: [PATCH 41/66] sipp: 3.6.1 -> 3.7.3-unstable-2025-01-22 --- pkgs/by-name/si/sipp/package.nix | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/si/sipp/package.nix b/pkgs/by-name/si/sipp/package.nix index 7ad501f87bdb..3f715baabcee 100644 --- a/pkgs/by-name/si/sipp/package.nix +++ b/pkgs/by-name/si/sipp/package.nix @@ -1,30 +1,27 @@ { lib, stdenv, - fetchurl, + fetchFromGitHub, ncurses, libpcap, cmake, openssl, - git, lksctp-tools, }: -stdenv.mkDerivation rec { - version = "3.6.1"; +stdenv.mkDerivation (finalAttrs: { pname = "sipp"; + version = "3.7.3-unstable-2025-01-22"; - src = fetchurl { - url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-alYOg6/5gvMx3byt+zvVMMWJbNW3V91utoITPMhg7LE="; + src = fetchFromGitHub { + owner = "SIPp"; + repo = "sipp"; + rev = "464cf74c7321069b51c10f0c37f19ba16c2e7138"; + hash = "sha256-mloeBKgDXmsa/WAUhlDsgNdhK8dpisGf3ti5UQQchJ8="; + leaveDotGit = true; }; - postPatch = '' - cp version.h src/version.h - ''; - cmakeFlags = [ - "-DUSE_GSL=1" "-DUSE_PCAP=1" "-DUSE_SSL=1" "-DUSE_SCTP=${if stdenv.hostPlatform.isLinux then "1" else "0"}" @@ -32,23 +29,24 @@ stdenv.mkDerivation rec { # file RPATH_CHANGE could not write new RPATH "-DCMAKE_SKIP_BUILD_RPATH=ON" ]; + enableParallelBuilding = true; nativeBuildInputs = [ cmake - git ]; + buildInputs = [ ncurses libpcap openssl ] ++ lib.optional (stdenv.hostPlatform.isLinux) lksctp-tools; - meta = with lib; { + meta = { homepage = "http://sipp.sf.net"; description = "SIPp testing tool"; mainProgram = "sipp"; - license = licenses.gpl3; - platforms = platforms.unix; + license = lib.licenses.gpl3; + platforms = lib.platforms.unix; }; -} +}) From 4d029d1cc02c90be76a370d512e8395e4c95bf27 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Thu, 13 Feb 2025 22:50:02 -0500 Subject: [PATCH 42/66] python3Packages.python-nomad: modernize Move to fetchFromGitHub, add passthru.updateScript, and remove with lib; Signed-off-by: Ethan Carter Edwards --- .../python-modules/python-nomad/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/python-nomad/default.nix b/pkgs/development/python-modules/python-nomad/default.nix index e504c4c2896d..ec1fa7f51f21 100644 --- a/pkgs/development/python-modules/python-nomad/default.nix +++ b/pkgs/development/python-modules/python-nomad/default.nix @@ -1,10 +1,11 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, setuptools, requests, pythonOlder, + nix-update-script, }: buildPythonPackage rec { @@ -14,10 +15,11 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - pname = "python_nomad"; - inherit version; - hash = "sha256-U+bZ7G9mtnKunW0DWRokvi2LVFDdf9vhADgxy5t3+Ec="; + src = fetchFromGitHub { + owner = "jrxfive"; + repo = "python-nomad"; + tag = version; + hash = "sha256-tLS463sYVlOr2iZSgSkd4pHUVCtiIPJ3L8+9omlX4NY="; }; build-system = [ setuptools ]; @@ -29,11 +31,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "nomad" ]; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Python client library for Hashicorp Nomad"; homepage = "https://github.com/jrxFive/python-nomad"; changelog = "https://github.com/jrxFive/python-nomad/blob/${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ xbreak ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ xbreak ]; }; } From bbfc04a05117929f467fd5fd287d015f57ab9ecc Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 14 Feb 2025 06:33:37 +0000 Subject: [PATCH 43/66] libei: 1.3.0 -> 1.4.0 Changes: https://gitlab.freedesktop.org/libinput/libei/-/releases/1.4.0 --- pkgs/by-name/li/libei/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libei/package.nix b/pkgs/by-name/li/libei/package.nix index 654f9ba46255..9dc3f0df4f30 100644 --- a/pkgs/by-name/li/libei/package.nix +++ b/pkgs/by-name/li/libei/package.nix @@ -23,14 +23,14 @@ let in stdenv.mkDerivation rec { pname = "libei"; - version = "1.3.0"; + version = "1.4.0"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "libinput"; repo = "libei"; rev = version; - hash = "sha256-yKeMHgR3s83xwoXgLW28ewF2tvs6l0Hq0cCAroCgq0U="; + hash = "sha256-lSrIC93Cke90/Xc8dqd3e/TU32tflYHYqc5fE8wglBI="; }; buildInputs = [ From 4c6997c57956ed47cca3138edffaf778527806b5 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 14 Feb 2025 07:35:17 -0500 Subject: [PATCH 44/66] python312Packages.fastjet: fix dependencies --- pkgs/development/python-modules/fastjet/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/fastjet/default.nix b/pkgs/development/python-modules/fastjet/default.nix index 6b57b4a8f031..2fdac2219cd5 100644 --- a/pkgs/development/python-modules/fastjet/default.nix +++ b/pkgs/development/python-modules/fastjet/default.nix @@ -63,7 +63,10 @@ buildPythonPackage rec { ]; dependencies = [ + awkward fastjet + numpy + vector ]; buildInputs = [ @@ -73,9 +76,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook - awkward - numpy - vector ]; env.SETUPTOOLS_SCM_PRETEND_VERSION = version; From d9ada6e386a584d6ce9686f94231fdae452585b0 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 14 Feb 2025 07:35:35 -0500 Subject: [PATCH 45/66] fastjet-contrib: fix soname --- pkgs/by-name/fa/fastjet-contrib/package.nix | 2 ++ pkgs/development/python-modules/fastjet/default.nix | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fa/fastjet-contrib/package.nix b/pkgs/by-name/fa/fastjet-contrib/package.nix index 02f4c55d215c..caab082a4e3d 100644 --- a/pkgs/by-name/fa/fastjet-contrib/package.nix +++ b/pkgs/by-name/fa/fastjet-contrib/package.nix @@ -23,6 +23,8 @@ stdenv.mkDerivation rec { substituteInPlace "$f" --replace-quiet "ranlib " "${stdenv.cc.targetPrefix}ranlib " done patchShebangs --build ./utils/check.sh ./utils/install-sh + substituteInPlace configure \ + --replace-warn "-Wl,-soname,fastjetcontribfragile.so.0" "-Wl,-soname,libfastjetcontribfragile.so" ''; # Written in shell manually, does not support autoconf-style diff --git a/pkgs/development/python-modules/fastjet/default.nix b/pkgs/development/python-modules/fastjet/default.nix index 2fdac2219cd5..54ebfea342a6 100644 --- a/pkgs/development/python-modules/fastjet/default.nix +++ b/pkgs/development/python-modules/fastjet/default.nix @@ -86,7 +86,5 @@ buildPythonPackage rec { changelog = "https://github.com/scikit-hep/fastjet/releases/tag/v${version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ veprbl ]; - # ImportError: fastjetcontribfragile.so.0: cannot open shared object file: No such file or directory - broken = true; }; } From d02a92e1ba1437c32604ecfb7107235aaf709f55 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Fri, 14 Feb 2025 08:49:25 -0600 Subject: [PATCH 46/66] anydesk: 6.4.0 -> 6.4.1 --- pkgs/by-name/an/anydesk/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/an/anydesk/package.nix b/pkgs/by-name/an/anydesk/package.nix index 463cbd40d129..a041ff516211 100644 --- a/pkgs/by-name/an/anydesk/package.nix +++ b/pkgs/by-name/an/anydesk/package.nix @@ -34,14 +34,14 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "anydesk"; - version = "6.4.0"; + version = "6.4.1"; src = fetchurl { urls = [ "https://download.anydesk.com/linux/anydesk-${finalAttrs.version}-amd64.tar.gz" "https://download.anydesk.com/linux/generic-linux/anydesk-${finalAttrs.version}-amd64.tar.gz" ]; - hash = "sha256-yGzTqbv3SQT6V/DcY8GvRDXilYrZXVsmQOnqy/5+ev8="; + hash = "sha256-rAdoH78e10JYLdXFIlasihztJxXNxb72HuxxSCfEzPE="; }; buildInputs = From 1ac75001649e3822e9caffaad85d7f1db76e9482 Mon Sep 17 00:00:00 2001 From: kotatsuyaki Date: Tue, 28 Jan 2025 00:21:44 +0800 Subject: [PATCH 47/66] mox: 0.0.10 -> 0.0.14 --- pkgs/by-name/mo/mox/package.nix | 12 ++++++++---- pkgs/by-name/mo/mox/version.patch | 26 ++++++++++++++++++++------ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/mo/mox/package.nix b/pkgs/by-name/mo/mox/package.nix index 749e4d2e4515..6c4c5addeb13 100644 --- a/pkgs/by-name/mo/mox/package.nix +++ b/pkgs/by-name/mo/mox/package.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "mox"; - version = "0.0.10"; + version = "0.0.14"; src = fetchFromGitHub { owner = "mjl-"; repo = "mox"; - rev = "v${version}"; - hash = "sha256-BigxFlMkagw82Lkz1xMMSwAJyfSdSbeQr6G6rCaomNg="; + tag = "v${version}"; + hash = "sha256-cBTY4SjQxdM5jXantLws1ckGVn3/b0/iVPFunBy09YQ="; }; # set the version during buildtime @@ -24,6 +24,7 @@ buildGoModule rec { "-s" "-w" "-X github.com/mjl-/mox/moxvar.Version=${version}" + "-X github.com/mjl-/mox/moxvar.VersionBare=${version}" ]; meta = { @@ -31,6 +32,9 @@ buildGoModule rec { mainProgram = "mox"; homepage = "https://github.com/mjl-/mox"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ dit7ya ]; + maintainers = with lib.maintainers; [ + dit7ya + kotatsuyaki + ]; }; } diff --git a/pkgs/by-name/mo/mox/version.patch b/pkgs/by-name/mo/mox/version.patch index c842275ac9e4..66dc48c0e864 100644 --- a/pkgs/by-name/mo/mox/version.patch +++ b/pkgs/by-name/mo/mox/version.patch @@ -1,24 +1,37 @@ diff --git a/moxvar/version.go b/moxvar/version.go -index 8c6bac8..69b5f7c 100644 +index 0b69cd9..9a5a5da 100644 --- a/moxvar/version.go +++ b/moxvar/version.go -@@ -1,38 +1,5 @@ +@@ -1,51 +1,6 @@ // Package moxvar provides the version number of a mox build. package moxvar - + -import ( +- "runtime" - "runtime/debug" -) - -// Version is set at runtime based on the Go module used to build. --var Version = "(devel)" ++// Version and VersionBare are set via a build flag. + var Version string +- +-// VersionBare does not add a "+modifications", goversion or other suffix to the version. +-var VersionBare string - -func init() { +- Version = "(devel)" +- VersionBare = "(devel)" +- +- defer func() { +- Version += "-" + runtime.Version() +- }() +- - buildInfo, ok := debug.ReadBuildInfo() - if !ok { - return - } - Version = buildInfo.Main.Version +- VersionBare = buildInfo.Main.Version - if Version == "(devel)" { - var vcsRev, vcsMod string - for _, setting := range buildInfo.Settings { @@ -32,6 +45,7 @@ index 8c6bac8..69b5f7c 100644 - return - } - Version = vcsRev +- VersionBare = vcsRev - switch vcsMod { - case "false": - case "true": @@ -41,5 +55,5 @@ index 8c6bac8..69b5f7c 100644 - } - } -} -+// Version is set via a build flag -+var Version string; ++var VersionBare string +\ No newline at end of file From 6d7f6a92cc5830f28dc56e4de8a4dc18c7ceda69 Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sun, 12 Jan 2025 12:21:10 -0800 Subject: [PATCH 48/66] lib/types: add `types.pathWith` This gives people some flexibility when they need a path type, and prevents a "combinatorial explosion" of various path stops. I've re-implemented our existing `path` and `pathInStore` types using `pathWith`. Our existing `package` type is potentially a candidate for similar treatment, but it's a little quirkier (there's some stuff with `builtins.hasContext` and `toDerivation` that I don't completely understand), and I didn't want to muddy this PR with that. As a happy side effect of this work, we get a new feature: the ability to create a type for paths *not* in the store. This is useful for when a module needs a path to a file, and wants to protect people from accidentally leaking that file into the nix store. --- lib/tests/modules.sh | 36 ++++++++ lib/tests/modules/pathWith.nix | 88 +++++++++++++++++++ lib/types.nix | 49 ++++++++--- .../development/option-types.section.md | 27 +++++- 4 files changed, 186 insertions(+), 14 deletions(-) create mode 100644 lib/tests/modules/pathWith.nix diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index c86e0aeec6dc..243fbce1ecb5 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -586,6 +586,42 @@ checkConfigOutput '^38|27$' options.submoduleLine38.declarationPositions.1.line # nested options work checkConfigOutput '^34$' options.nested.nestedLine34.declarationPositions.0.line ./declaration-positions.nix +# types.pathWith { inStore = true; } +checkConfigOutput '".*/store/0lz9p8xhf89kb1c1kk6jxrzskaiygnlh-bash-5.2-p15.drv"' config.pathInStore.ok1 ./pathWith.nix +checkConfigOutput '".*/store/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15"' config.pathInStore.ok2 ./pathWith.nix +checkConfigOutput '".*/store/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15/bin/bash"' config.pathInStore.ok3 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ""' config.pathInStore.bad1 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store"' config.pathInStore.bad2 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store/"' config.pathInStore.bad3 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store/.links"' config.pathInStore.bad4 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: "/foo/bar"' config.pathInStore.bad5 ./pathWith.nix + +# types.pathWith { inStore = false; } +checkConfigOutput '"/foo/bar"' config.pathNotInStore.ok1 ./pathWith.nix +checkConfigOutput '".*/store"' config.pathNotInStore.ok2 ./pathWith.nix +checkConfigOutput '".*/store/"' config.pathNotInStore.ok3 ./pathWith.nix +checkConfigOutput '""' config.pathNotInStore.ok4 ./pathWith.nix +checkConfigOutput '".*/store/.links"' config.pathNotInStore.ok5 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path not in the Nix store.. Definition values:\n\s*- In .*: ".*/0lz9p8xhf89kb1c1kk6jxrzskaiygnlh-bash-5.2-p15.drv"' config.pathNotInStore.bad1 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path not in the Nix store.. Definition values:\n\s*- In .*: ".*/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15"' config.pathNotInStore.bad2 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path not in the Nix store.. Definition values:\n\s*- In .*: ".*/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15/bin/bash"' config.pathNotInStore.bad3 ./pathWith.nix +checkConfigError 'A definition for option .* is not of type .path not in the Nix store.. Definition values:\n\s*- In .*: .*/pathWith.nix' config.pathNotInStore.bad4 ./pathWith.nix + +# types.pathWith { } +checkConfigOutput '"/this/is/absolute"' config.anyPath.ok1 ./pathWith.nix +checkConfigOutput '"./this/is/relative"' config.anyPath.ok2 ./pathWith.nix +checkConfigError 'A definition for option .anyPath.bad1. is not of type .path.' config.anyPath.bad1 ./pathWith.nix + +# types.pathWith { absolute = true; } +checkConfigOutput '"/this/is/absolute"' config.absolutePathNotInStore.ok1 ./pathWith.nix +checkConfigError 'A definition for option .absolutePathNotInStore.bad1. is not of type .absolute path not in the Nix store.' config.absolutePathNotInStore.bad1 ./pathWith.nix +checkConfigError 'A definition for option .absolutePathNotInStore.bad2. is not of type .absolute path not in the Nix store.' config.absolutePathNotInStore.bad2 ./pathWith.nix + +# types.pathWith failed type merge +checkConfigError 'The option .conflictingPathOptionType. in .*/pathWith.nix. is already declared in .*/pathWith.nix' config.conflictingPathOptionType ./pathWith.nix + +# types.pathWith { inStore = true; absolute = false; } +checkConfigError 'In pathWith, inStore means the path must be absolute' config.impossiblePathOptionType ./pathWith.nix cat < Date: Sat, 15 Feb 2025 18:19:08 +0000 Subject: [PATCH 49/66] aliyun-cli: refactor --- pkgs/by-name/al/aliyun-cli/package.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/al/aliyun-cli/package.nix b/pkgs/by-name/al/aliyun-cli/package.nix index 3953e3634efc..d4bcafbe1f10 100644 --- a/pkgs/by-name/al/aliyun-cli/package.nix +++ b/pkgs/by-name/al/aliyun-cli/package.nix @@ -2,6 +2,8 @@ lib, buildGoModule, fetchFromGitHub, + writableTmpDirAsHomeHook, + nix-update-script, }: buildGoModule rec { @@ -9,11 +11,11 @@ buildGoModule rec { version = "3.0.211"; src = fetchFromGitHub { - rev = "v${version}"; owner = "aliyun"; - repo = pname; - fetchSubmodules = true; + repo = "aliyun-cli"; + tag = "v${version}"; hash = "sha256-6msh6bGL++nXVzwwNW6fFZbkN40ieL+SpgRownIs9aE="; + fetchSubmodules = true; }; vendorHash = "sha256-wHdSDBxDArVbD5+EgGcIpQ+NLg5BKXo2v3WM4ni1efc="; @@ -26,16 +28,20 @@ buildGoModule rec { "-X github.com/aliyun/aliyun-cli/cli.Version=${version}" ]; + nativeCheckInputs = [ writableTmpDirAsHomeHook ]; + postInstall = '' - mv $out/bin/main $out/bin/aliyun + install -Dm755 $out/bin/main $out/bin/aliyun ''; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Tool to manage and use Alibaba Cloud resources through a command line interface"; homepage = "https://github.com/aliyun/aliyun-cli"; changelog = "https://github.com/aliyun/aliyun-cli/releases/tag/v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ ornxka ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ ornxka ]; mainProgram = "aliyun"; }; } From 9f828131a68c65160dc310050440a98c0c8aa0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Sat, 15 Feb 2025 18:43:17 -0300 Subject: [PATCH 50/66] qogir-icon-theme: 2023-06-05 -> 2025-02-15 Diff: https://github.com/vinceliuice/qogir-icon-theme/compare/2023-06-05...2025-02-15 --- pkgs/by-name/qo/qogir-icon-theme/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/qo/qogir-icon-theme/package.nix b/pkgs/by-name/qo/qogir-icon-theme/package.nix index 179b138e60fa..26b7c6e39bdc 100644 --- a/pkgs/by-name/qo/qogir-icon-theme/package.nix +++ b/pkgs/by-name/qo/qogir-icon-theme/package.nix @@ -23,13 +23,13 @@ lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] color stdenvNoCC.mkDerivation rec { inherit pname; - version = "2023-06-05"; + version = "2025-02-15"; src = fetchFromGitHub { owner = "vinceliuice"; repo = pname; rev = version; - sha256 = "sha256-qiHmA/K4hdXVSFzergGhgssKR+kXp3X0cqtX1X5ayM4="; + hash = "sha256-Eh4TWoFfArFmpM/9tkrf2sChQ0zzOZJE9pElchu8DCM="; }; nativeBuildInputs = [ @@ -39,8 +39,6 @@ lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] color propagatedBuildInputs = [ hicolor-icon-theme ]; - # FIXME: https://hydra.nixos.org/build/286997490/nixlog/5 - dontCheckForBrokenSymlinks = true; dontDropIconThemeCache = true; # These fixup steps are slow and unnecessary. From 590f015257ca6deed0107fa11165171b346f78ec Mon Sep 17 00:00:00 2001 From: misilelab Date: Sun, 16 Feb 2025 11:50:18 +0900 Subject: [PATCH 51/66] simplex-chat-desktop: 6.2.4 -> 6.2.5 --- pkgs/by-name/si/simplex-chat-desktop/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/si/simplex-chat-desktop/package.nix b/pkgs/by-name/si/simplex-chat-desktop/package.nix index 876fc9d883a4..998c41fe33d1 100644 --- a/pkgs/by-name/si/simplex-chat-desktop/package.nix +++ b/pkgs/by-name/si/simplex-chat-desktop/package.nix @@ -7,11 +7,11 @@ let pname = "simplex-chat-desktop"; - version = "6.2.4"; + version = "6.2.5"; src = fetchurl { url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-x86_64.AppImage"; - hash = "sha256-Qd9qbsMLCBSs2Ow/OXUDbfl4rFdAIOwUiDmPAvhvDrs="; + hash = "sha256-7A/2FgB35SyBO1GZagChwNytFn2aSzPiAFBeHk316bw="; }; appimageContents = appimageTools.extract { From 56ff9c7c9dd7dada6b5575d756228bb130fa5c28 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 16 Feb 2025 16:03:43 +0000 Subject: [PATCH 52/66] fheroes2: 1.1.5 -> 1.1.6 Changes: https://github.com/ihhub/fheroes2/releases/tag/1.1.6 --- pkgs/by-name/fh/fheroes2/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fh/fheroes2/package.nix b/pkgs/by-name/fh/fheroes2/package.nix index 10af267396fb..dbe215a34360 100644 --- a/pkgs/by-name/fh/fheroes2/package.nix +++ b/pkgs/by-name/fh/fheroes2/package.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation rec { pname = "fheroes2"; - version = "1.1.5"; + version = "1.1.6"; src = fetchFromGitHub { owner = "ihhub"; repo = "fheroes2"; rev = version; - hash = "sha256-Iy7aDC2IRwaNcX+hqtlKNDdOC8WCIlCxfNVeMRK6KP4="; + hash = "sha256-CowCP+gZuGSXWbALYBkmyn+RlDgOGho/Px34GutrBX0="; }; nativeBuildInputs = [ imagemagick ]; From 3abb3bca5eed79a056fcbb7db4a9a7b43a181d49 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 17 Feb 2025 01:42:11 +0900 Subject: [PATCH 53/66] lima: 1.0.3 -> 1.0.6 Release: https://github.com/lima-vm/lima/releases/tag/v1.0.6 Diff: https://github.com/lima-vm/lima/compare/v1.0.3...v1.0.6 This commit avoids tagged URLs in comments, That would be incorrectly updated by the update script. --- pkgs/applications/virtualization/lima/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/virtualization/lima/default.nix b/pkgs/applications/virtualization/lima/default.nix index 282fcac2395e..705aef607045 100644 --- a/pkgs/applications/virtualization/lima/default.nix +++ b/pkgs/applications/virtualization/lima/default.nix @@ -14,16 +14,16 @@ buildGoModule rec { pname = "lima"; - version = "1.0.3"; + version = "1.0.6"; src = fetchFromGitHub { owner = "lima-vm"; repo = "lima"; rev = "v${version}"; - hash = "sha256-S0Mk7h4gH5syP/ayK5g1g8HG5f23sKCQCCbM6xOj+n0="; + hash = "sha256-3K2RC4cPoIuDePTOYzY+ejmBFZwgYDvCtoe/ZLX66sc="; }; - vendorHash = "sha256-1SHiz+lfG4nl1qavq/Fd73UV8LkErILk7d8XZJSbHd0="; + vendorHash = "sha256-tjogQUD+F/3ALlJwpdDKdXHRcYB+n0EuJ81TB1VKKDY="; nativeBuildInputs = [ makeWrapper @@ -71,7 +71,7 @@ buildGoModule rec { ''; doInstallCheck = true; - # Workaround for: "panic: $HOME is not defined" at https://github.com/lima-vm/lima/blob/v1.0.3/pkg/limayaml/defaults.go#L52 + # Workaround for: "panic: $HOME is not defined" at https://github.com/lima-vm/lima/blob/cb99e9f8d01ebb82d000c7912fcadcd87ec13ad5/pkg/limayaml/defaults.go#L53 # Don't use versionCheckHook for this package. It cannot inject environment variables. installCheckPhase = '' if [[ "$(HOME="$(mktemp -d)" "$out/bin/limactl" --version | cut -d ' ' -f 3)" == "${version}" ]]; then From 8fb0aa8928ca675954ef78319f807c183b6866a8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 16 Feb 2025 21:23:33 +0000 Subject: [PATCH 54/66] maa-assistant-arknights: 5.12.3 -> 5.13.1 --- pkgs/by-name/ma/maa-assistant-arknights/pin.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/maa-assistant-arknights/pin.json b/pkgs/by-name/ma/maa-assistant-arknights/pin.json index a7a5ae94d47f..1c556e1ea081 100644 --- a/pkgs/by-name/ma/maa-assistant-arknights/pin.json +++ b/pkgs/by-name/ma/maa-assistant-arknights/pin.json @@ -1,10 +1,10 @@ { "stable": { - "version": "5.12.3", - "hash": "sha256-Rl21p+nN5KnabzzH9cRWJnLIKX/3Haex+VSY3PvZs5Q=" + "version": "5.13.1", + "hash": "sha256-mXM1B54Wf1T61jfYz6ug7xPmhLeUqaB6jyBAkxIybfM=" }, "beta": { - "version": "5.13.0-beta.4", - "hash": "sha256-TPNS4VkbUNesT0TN2jAyTilzr5+3H6JxqOLujc7VQDA=" + "version": "5.13.1", + "hash": "sha256-mXM1B54Wf1T61jfYz6ug7xPmhLeUqaB6jyBAkxIybfM=" } } From c585679a42a8376d6ad3d6869f2c1eba36ff0c90 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sun, 16 Feb 2025 18:03:44 -0500 Subject: [PATCH 55/66] tailwindcss: make v4 default, move tailwindcss_3 to by-name --- pkgs/by-name/ta/tailwindcss/package.nix | 1 + .../default.nix => by-name/ta/tailwindcss_3/package.nix} | 3 +-- .../tools/tailwindcss => by-name/ta/tailwindcss_3}/update.sh | 0 pkgs/by-name/ta/tailwindcss_4/package.nix | 1 - pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 pkgs/by-name/ta/tailwindcss/package.nix rename pkgs/{development/tools/tailwindcss/default.nix => by-name/ta/tailwindcss_3/package.nix} (97%) rename pkgs/{development/tools/tailwindcss => by-name/ta/tailwindcss_3}/update.sh (100%) diff --git a/pkgs/by-name/ta/tailwindcss/package.nix b/pkgs/by-name/ta/tailwindcss/package.nix new file mode 100644 index 000000000000..e981f68a88e5 --- /dev/null +++ b/pkgs/by-name/ta/tailwindcss/package.nix @@ -0,0 +1 @@ +{ tailwindcss_4 }: tailwindcss_4 diff --git a/pkgs/development/tools/tailwindcss/default.nix b/pkgs/by-name/ta/tailwindcss_3/package.nix similarity index 97% rename from pkgs/development/tools/tailwindcss/default.nix rename to pkgs/by-name/ta/tailwindcss_3/package.nix index f562cabd500f..2f43e836ff9a 100644 --- a/pkgs/development/tools/tailwindcss/default.nix +++ b/pkgs/by-name/ta/tailwindcss_3/package.nix @@ -3,7 +3,6 @@ fetchurl, stdenv, runCommand, - tailwindcss, }: let inherit (stdenv.hostPlatform) system; @@ -30,7 +29,7 @@ let .${system} or throwSystem; in stdenv.mkDerivation (finalAttrs: { - pname = "tailwindcss"; + pname = "tailwindcss_3"; version = "3.4.17"; src = fetchurl { diff --git a/pkgs/development/tools/tailwindcss/update.sh b/pkgs/by-name/ta/tailwindcss_3/update.sh similarity index 100% rename from pkgs/development/tools/tailwindcss/update.sh rename to pkgs/by-name/ta/tailwindcss_3/update.sh diff --git a/pkgs/by-name/ta/tailwindcss_4/package.nix b/pkgs/by-name/ta/tailwindcss_4/package.nix index 9c4128a4df5a..0032ca379844 100644 --- a/pkgs/by-name/ta/tailwindcss_4/package.nix +++ b/pkgs/by-name/ta/tailwindcss_4/package.nix @@ -5,7 +5,6 @@ versionCheckHook, autoPatchelfHook, makeWrapper, - tailwindcss_4, }: let version = "4.0.6"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a5d9e8ce8a00..9ee8e802c788 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1081,8 +1081,6 @@ with pkgs; ocamlPackages = ocaml-ng.ocamlPackages_4_14; }; - tailwindcss = callPackage ../development/tools/tailwindcss { }; - ufolint = with python3Packages; toPythonApplication ufolint; valeronoi = qt6Packages.callPackage ../tools/misc/valeronoi { }; From 1ea38ae206f7152fffb35f816139098db17512d1 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sun, 16 Feb 2025 18:09:19 -0500 Subject: [PATCH 56/66] tailwindcss_4: add adamcstephens as maintainer --- pkgs/by-name/ta/tailwindcss_4/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ta/tailwindcss_4/package.nix b/pkgs/by-name/ta/tailwindcss_4/package.nix index 0032ca379844..388a39759bb4 100644 --- a/pkgs/by-name/ta/tailwindcss_4/package.nix +++ b/pkgs/by-name/ta/tailwindcss_4/package.nix @@ -70,7 +70,10 @@ stdenv.mkDerivation { homepage = "https://tailwindcss.com/blog/tailwindcss-v4"; license = lib.licenses.mit; sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; - maintainers = [ lib.maintainers.adamjhf ]; + maintainers = with lib.maintainers; [ + adamcstephens + adamjhf + ]; mainProgram = "tailwindcss"; platforms = lib.platforms.darwin ++ lib.platforms.linux; }; From 285bd8dd46ff90b5572cdbf51e6658eacc780b17 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sun, 16 Feb 2025 18:16:53 -0500 Subject: [PATCH 57/66] tailwindcss_[34]: split and fix updater scripts --- pkgs/by-name/ta/tailwindcss_3/update.sh | 14 +++++++------- pkgs/by-name/ta/tailwindcss_4/update.sh | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) mode change 100644 => 100755 pkgs/by-name/ta/tailwindcss_4/update.sh diff --git a/pkgs/by-name/ta/tailwindcss_3/update.sh b/pkgs/by-name/ta/tailwindcss_3/update.sh index b3a9ccf37819..1a5f68d74f07 100755 --- a/pkgs/by-name/ta/tailwindcss_3/update.sh +++ b/pkgs/by-name/ta/tailwindcss_3/update.sh @@ -1,27 +1,27 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl gnused jq nix-prefetch +#!nix-shell -i bash -p common-updater-scripts gnused jq nix-prefetch set -eou pipefail ROOT="$(dirname "$(readlink -f "$0")")" -CURRENT_VERSION=$(nix-instantiate --eval --strict --json -A tailwindcss.version . | jq -r .) -LATEST_VERSION=$(curl --fail --silent https://api.github.com/repos/tailwindlabs/tailwindcss/releases/latest | jq --raw-output .tag_name | sed 's/v//') -sed -i "s/version = \".*\"/version = \"${LATEST_VERSION}\"/" "$ROOT/default.nix" +CURRENT_VERSION=$(nix-instantiate --eval --strict --json -A tailwindcss_3.version . | jq -r .) +LATEST_VERSION=$(list-git-tags --url=https://github.com/tailwindlabs/tailwindcss | rg 'v3[0-9\.]*$' | sed -e 's/^v//' | sort -V | tail -n 1) +sed -i "s/version = \".*\"/version = \"${LATEST_VERSION}\"/" "$ROOT/package.nix" if [ "$CURRENT_VERSION" = "$LATEST_VERSION" ]; then - echo "tailwindcss already at latest version $CURRENT_VERSION, exiting" + echo "tailwindcss_3 already at latest version $CURRENT_VERSION, exiting" exit 0 fi function updatePlatform() { NIXPLAT=$1 TAILWINDPLAT=$2 - echo "Updating tailwindcss for $NIXPLAT" + echo "Updating tailwindcss_3 for $NIXPLAT" URL="https://github.com/tailwindlabs/tailwindcss/releases/download/v${LATEST_VERSION}/tailwindcss-${TAILWINDPLAT}" HASH=$(nix hash to-sri --type sha256 "$(nix-prefetch-url --type sha256 "$URL")") - sed -i "s,$NIXPLAT = \"sha256.*\",$NIXPLAT = \"${HASH}\"," "$ROOT/default.nix" + sed -i "s,$NIXPLAT = \"sha256.*\",$NIXPLAT = \"${HASH}\"," "$ROOT/package.nix" } updatePlatform aarch64-darwin macos-arm64 diff --git a/pkgs/by-name/ta/tailwindcss_4/update.sh b/pkgs/by-name/ta/tailwindcss_4/update.sh old mode 100644 new mode 100755 index bcf057e6e9b9..3f50e10768e1 --- a/pkgs/by-name/ta/tailwindcss_4/update.sh +++ b/pkgs/by-name/ta/tailwindcss_4/update.sh @@ -1,27 +1,27 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl gnused jq nix-prefetch +#!nix-shell -i bash -p common-updater-scripts gnused jq nix-prefetch set -eou pipefail ROOT="$(dirname "$(readlink -f "$0")")" CURRENT_VERSION=$(nix-instantiate --eval --strict --json -A tailwindcss.version . | jq -r .) -LATEST_VERSION=$(curl --fail --silent https://api.github.com/repos/tailwindlabs/tailwindcss/releases/latest | jq --raw-output .tag_name | sed 's/v//') -sed -i "s/version = \".*\"/version = \"${LATEST_VERSION}\"/" "$ROOT/default.nix" +LATEST_VERSION=$(list-git-tags --url=https://github.com/tailwindlabs/tailwindcss | rg 'v4[0-9\.]*$' | sed -e 's/^v//' | sort -V | tail -n 1) +sed -i "s/version = \".*\"/version = \"${LATEST_VERSION}\"/" "$ROOT/package.nix" if [ "$CURRENT_VERSION" = "$LATEST_VERSION" ]; then - echo "tailwindcss already at latest version $CURRENT_VERSION, exiting" + echo "tailwindcss_4 already at latest version $CURRENT_VERSION, exiting" exit 0 fi function updatePlatform() { NIXPLAT=$1 TAILWINDPLAT=$2 - echo "Updating tailwindcss for $NIXPLAT" + echo "Updating tailwindcss_4 for $NIXPLAT" URL="https://github.com/tailwindlabs/tailwindcss/releases/download/v${LATEST_VERSION}/tailwindcss-${TAILWINDPLAT}" HASH=$(nix hash to-sri --type sha256 "$(nix-prefetch-url --type sha256 "$URL")") - sed -i "s,$NIXPLAT = \"sha256.*\",$NIXPLAT = \"${HASH}\"," "$ROOT/default.nix" + sed -i "s,$NIXPLAT = \"sha256.*\",$NIXPLAT = \"${HASH}\"," "$ROOT/package.nix" } updatePlatform aarch64-darwin macos-arm64 From 46ba71a13b8a6e0e9420dc27d05c3148ce339d64 Mon Sep 17 00:00:00 2001 From: Damian Sypniewski Date: Tue, 4 Feb 2025 11:32:33 +0900 Subject: [PATCH 58/66] dynein: 0.2.1 -> 0.3.0 --- pkgs/development/tools/database/dynein/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/database/dynein/default.nix b/pkgs/development/tools/database/dynein/default.nix index 7497a7db3803..75fcbb6ffe83 100644 --- a/pkgs/development/tools/database/dynein/default.nix +++ b/pkgs/development/tools/database/dynein/default.nix @@ -1,6 +1,7 @@ { fetchFromGitHub, lib, + cmake, openssl, pkg-config, rustPlatform, @@ -8,28 +9,30 @@ rustPlatform.buildRustPackage rec { pname = "dynein"; - version = "0.2.1"; + version = "0.3.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "dynein"; rev = "v${version}"; - hash = "sha256-QhasTFGOFOjzNKdQtA+eBhKy51O4dFt6vpeIAIOM2rQ="; + hash = "sha256-GU/zZ7IJPfpRbrWjrVwPDSFjFfMLoG/c8DDWlN6nZ94="; }; # Use system openssl. OPENSSL_NO_VENDOR = 1; useFetchCargoVendor = true; - cargoHash = "sha256-rOfJz5G6kO1/IM6M6dZJTJmzJhx/450dIPvAVBHUp5o="; + cargoHash = "sha256-PA7Hvn+vYBD80thkIamwOhw4lJWAmU/TQBnwJro4r7c="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl + cmake ]; preBuild = '' + export CMAKE=${lib.getDev cmake}/bin/cmake export OPENSSL_DIR=${lib.getDev openssl} export OPENSSL_LIB_DIR=${lib.getLib openssl}/lib ''; From e8234072b5a498764b4f0a763c98ccc0a427456c Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Sat, 15 Feb 2025 23:28:56 +0200 Subject: [PATCH 59/66] python3Packages.warcio: fix build Closes #382174 --- pkgs/development/python-modules/warcio/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/warcio/default.nix b/pkgs/development/python-modules/warcio/default.nix index 91ddc5ed3d3b..cb9536e18d41 100644 --- a/pkgs/development/python-modules/warcio/default.nix +++ b/pkgs/development/python-modules/warcio/default.nix @@ -11,6 +11,7 @@ setuptools, six, wsgiprox, + pytest-cov-stub, }: buildPythonPackage rec { @@ -47,13 +48,12 @@ buildPythonPackage rec { pytestCheckHook requests wsgiprox + pytest-cov-stub ]; - pytestFlagsArray = [ "--offline" ]; - - disabledTests = [ - # Tests require network access, see above - "test_get_cache_to_file" + pytestFlagsArray = [ + "--offline" + "--ignore=test/test_capture_http_proxy.py" ]; pythonImportsCheck = [ "warcio" ]; From b4d08c1e7cac47e71399ef9880cd5906fedbd3d8 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 16 Feb 2025 19:07:44 -0500 Subject: [PATCH 60/66] tmuxPlugins.dracula: 3.0.0 -> 3.1.0 Signed-off-by: Ethan Carter Edwards --- pkgs/misc/tmux-plugins/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/tmux-plugins/default.nix b/pkgs/misc/tmux-plugins/default.nix index 2d9450274703..ea59cf1e3f1a 100644 --- a/pkgs/misc/tmux-plugins/default.nix +++ b/pkgs/misc/tmux-plugins/default.nix @@ -197,12 +197,12 @@ in rec { dracula = mkTmuxPlugin rec { pluginName = "dracula"; - version = "3.0.0"; + version = "3.1.0"; src = fetchFromGitHub { owner = "dracula"; repo = "tmux"; rev = "v${version}"; - hash = "sha256-VY4PyaQRwTc6LWhPJg4inrQf5K8+bp0+eqRhR7+Iexk="; + hash = "sha256-WNgCa8F618JQiHDM1YxHj7oR7w+7U6SU89K90RYIUh8="; }; meta = with lib; { homepage = "https://draculatheme.com/tmux"; From 3c55515b3166ae28db52b4e7908249f0391777a6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Feb 2025 00:57:10 +0000 Subject: [PATCH 61/66] lightspark: 0.8.7 -> 0.9.0 --- pkgs/by-name/li/lightspark/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/lightspark/package.nix b/pkgs/by-name/li/lightspark/package.nix index 4f73bf561ef2..89d6900fba94 100644 --- a/pkgs/by-name/li/lightspark/package.nix +++ b/pkgs/by-name/li/lightspark/package.nix @@ -23,13 +23,13 @@ stdenv.mkDerivation rec { pname = "lightspark"; - version = "0.8.7"; + version = "0.9.0"; src = fetchFromGitHub { owner = "lightspark"; repo = "lightspark"; rev = version; - hash = "sha256-qX/ft9slWTbvuSyi2jB6YC7D7QTtCybL/dTo1dJp3pQ="; + hash = "sha256-2+Kmwj2keCMR7UbKbY6UvrkX4CnW61elres8ltiZuUg="; }; postPatch = '' From cc9e1db81b0484dcd35cf0a2419fbecf1675e20d Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sun, 16 Feb 2025 19:57:39 -0500 Subject: [PATCH 62/66] ex_doc: add updateScript --- pkgs/development/beam-modules/ex_doc/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/ex_doc/default.nix b/pkgs/development/beam-modules/ex_doc/default.nix index fbc1f8a0da92..4d4897780944 100644 --- a/pkgs/development/beam-modules/ex_doc/default.nix +++ b/pkgs/development/beam-modules/ex_doc/default.nix @@ -1,4 +1,4 @@ -{ lib, elixir, fetchFromGitHub, fetchMixDeps, mixRelease }: +{ lib, elixir, fetchFromGitHub, fetchMixDeps, mixRelease, nix-update-script }: # Based on ../elixir-ls/default.nix let @@ -41,6 +41,8 @@ mixRelease { runHook postInstall ''; + passthru.updateScript = nix-update-script { }; + meta = with lib; { homepage = "https://github.com/elixir-lang/ex_doc"; description = '' From 849604f776f4c7a8c5b25e43f92dff14963e10b3 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Mon, 17 Feb 2025 00:58:15 +0000 Subject: [PATCH 63/66] ex_doc: 0.34.1 -> 0.37.1 --- pkgs/development/beam-modules/ex_doc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/beam-modules/ex_doc/default.nix b/pkgs/development/beam-modules/ex_doc/default.nix index 4d4897780944..736be609e9da 100644 --- a/pkgs/development/beam-modules/ex_doc/default.nix +++ b/pkgs/development/beam-modules/ex_doc/default.nix @@ -3,12 +3,12 @@ let pname = "ex_doc"; - version = "0.34.1"; + version = "0.37.1"; src = fetchFromGitHub { owner = "elixir-lang"; repo = "${pname}"; rev = "v${version}"; - hash = "sha256-OXIRippEDYAKD222XzNJkkZdXbUkDUauv5amr4oAU7c="; + hash = "sha256-PF+4bJ1FGr7t8khorlrB7rSSmNsGpyhC4HmWjw6j0JQ="; }; in mixRelease { @@ -19,7 +19,7 @@ mixRelease { mixFodDeps = fetchMixDeps { pname = "mix-deps-${pname}"; inherit src version elixir; - hash = "sha256-fYINsATbw3M3r+IVoYS14aVEsg9OBuH6mNUqzQJuDQo="; + hash = "sha256-s4b6wuBJPdN0FPn76zbLCHzqJNEZ6E4nOyB1whUM2VY="; }; configurePhase = '' From bc241eb4057336902e7689e55caba3b2b617f553 Mon Sep 17 00:00:00 2001 From: nayeko <196556004+nayeko@users.noreply.github.com> Date: Sat, 15 Feb 2025 18:19:32 +0000 Subject: [PATCH 64/66] aliyun-cli: 3.0.211 -> 3.0.252 --- pkgs/by-name/al/aliyun-cli/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/al/aliyun-cli/package.nix b/pkgs/by-name/al/aliyun-cli/package.nix index d4bcafbe1f10..f71e7018e9e4 100644 --- a/pkgs/by-name/al/aliyun-cli/package.nix +++ b/pkgs/by-name/al/aliyun-cli/package.nix @@ -8,17 +8,17 @@ buildGoModule rec { pname = "aliyun-cli"; - version = "3.0.211"; + version = "3.0.252"; src = fetchFromGitHub { owner = "aliyun"; repo = "aliyun-cli"; tag = "v${version}"; - hash = "sha256-6msh6bGL++nXVzwwNW6fFZbkN40ieL+SpgRownIs9aE="; + hash = "sha256-BNoNO8HQQGkUTR2MfpolF+PRo7YgT0hUbi5n+zPst6c="; fetchSubmodules = true; }; - vendorHash = "sha256-wHdSDBxDArVbD5+EgGcIpQ+NLg5BKXo2v3WM4ni1efc="; + vendorHash = "sha256-xwhq1UJ73Xxmt3NkpQMCrcl9N0F833N3/V+O+w1SVrQ="; subPackages = [ "main" ]; @@ -31,7 +31,7 @@ buildGoModule rec { nativeCheckInputs = [ writableTmpDirAsHomeHook ]; postInstall = '' - install -Dm755 $out/bin/main $out/bin/aliyun + mv $out/bin/main $out/bin/aliyun ''; passthru.updateScript = nix-update-script { }; From 3e27fe23a98a01742163ce084dd318a82a35fd78 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Feb 2025 01:21:09 +0000 Subject: [PATCH 65/66] supergfxctl: 5.2.4 -> 5.2.7 --- pkgs/by-name/su/supergfxctl/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/su/supergfxctl/package.nix b/pkgs/by-name/su/supergfxctl/package.nix index 59ccbc77eeae..d0421bd1d902 100644 --- a/pkgs/by-name/su/supergfxctl/package.nix +++ b/pkgs/by-name/su/supergfxctl/package.nix @@ -8,17 +8,17 @@ rustPlatform.buildRustPackage rec { pname = "supergfxctl"; - version = "5.2.4"; + version = "5.2.7"; src = fetchFromGitLab { owner = "asus-linux"; repo = "supergfxctl"; rev = version; - hash = "sha256-ie5JPHBvypUtPStwA/aO4GeQ/qbHTzUJF3T4QuW6JNc="; + hash = "sha256-d3jN4i4oHRFDgr5f6y42gahrCfXBPB61T72x6IeiskM="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Ef4lxuN7s5X/9I7VSub5DZVjQG8DhdMr/7CRtd2x9rs="; + cargoHash = "sha256-BM/fcXWyEWjAkqOdj2MItOzKknNUe9HMns30H1n5/xo="; postPatch = '' substituteInPlace data/supergfxd.service --replace /usr/bin/supergfxd $out/bin/supergfxd From 7ffa9e92b5c6ba0c5fbc8f06daa4f49cfa2628f4 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sun, 16 Feb 2025 19:56:18 -0500 Subject: [PATCH 66/66] erlang_28: init at 28.0-rc1 --- pkgs/development/beam-modules/default.nix | 14 ++++++++++---- pkgs/development/interpreters/erlang/28.nix | 6 ++++++ .../interpreters/erlang/generic-builder.nix | 7 +++++++ pkgs/top-level/all-packages.nix | 6 +++++- pkgs/top-level/beam-packages.nix | 9 +++++++++ 5 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 pkgs/development/interpreters/erlang/28.nix diff --git a/pkgs/development/beam-modules/default.nix b/pkgs/development/beam-modules/default.nix index 8bbd6418c4c2..a5a3ae2d3837 100644 --- a/pkgs/development/beam-modules/default.nix +++ b/pkgs/development/beam-modules/default.nix @@ -1,4 +1,8 @@ -{ lib, __splicedPackages, erlang }: +{ + lib, + __splicedPackages, + erlang, +}: let pkgs = __splicedPackages; @@ -7,10 +11,13 @@ let lib' = pkgs.callPackage ./lib.nix { }; # FIXME: add support for overrideScope - callPackageWithScope = scope: drv: args: lib.callPackageWith scope drv args; + callPackageWithScope = + scope: drv: args: + lib.callPackageWith scope drv args; mkScope = scope: pkgs // scope; - packages = self: + packages = + self: let defaultScope = mkScope self; callPackage = drv: args: callPackageWithScope defaultScope drv args; @@ -75,7 +82,6 @@ let ex_doc = callPackage ./ex_doc { inherit fetchMixDeps mixRelease; - elixir = elixir_1_17; }; elixir-ls = callPackage ./elixir-ls { inherit elixir fetchMixDeps mixRelease; }; diff --git a/pkgs/development/interpreters/erlang/28.nix b/pkgs/development/interpreters/erlang/28.nix new file mode 100644 index 000000000000..05fb205543cc --- /dev/null +++ b/pkgs/development/interpreters/erlang/28.nix @@ -0,0 +1,6 @@ +{ mkDerivation }: + +mkDerivation { + version = "28.0-rc1"; + sha256 = "sha256-fjje31F5YW5rzetb2r4fkESwKt9N+WOH3yrqETUjJzg="; +} diff --git a/pkgs/development/interpreters/erlang/generic-builder.nix b/pkgs/development/interpreters/erlang/generic-builder.nix index 38c8278b02a0..d1cc86697f86 100644 --- a/pkgs/development/interpreters/erlang/generic-builder.nix +++ b/pkgs/development/interpreters/erlang/generic-builder.nix @@ -140,6 +140,13 @@ stdenv.mkDerivation ( libxml2 ]; + env = lib.optionalAttrs ((lib.versionAtLeast "28.0-rc1" version) && ex_docSupport) { + # erlang-28.0-rc> warning: jinterface.html redirects to ../lib/jinterface/doc/html/index.html, which does not exist + # erlang-28.0-rc> + # erlang-28.0-rc> warning: odbc.html redirects to ../lib/odbc/doc/html/index.html, which does not exist + EX_DOC_WARNINGS_AS_ERRORS = "false"; + }; + buildInputs = [ ncurses diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 84e92b4eab81..7b7b530174c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6950,7 +6950,7 @@ with pkgs; }; inherit (beam.interpreters) - erlang erlang_27 erlang_26 erlang_25 + erlang erlang_28 erlang_27 erlang_26 erlang_25 elixir elixir_1_18 elixir_1_17 elixir_1_16 elixir_1_15 elixir_1_14 elixir-ls; @@ -6968,10 +6968,14 @@ with pkgs; beam25Packages = recurseIntoAttrs beam.packages.erlang_25; beam26Packages = recurseIntoAttrs beam.packages.erlang_26; beam27Packages = recurseIntoAttrs beam.packages.erlang_27; + # 28 is pre-release + beam28Packages = dontRecurseIntoAttrs beam.packages.erlang_28; beamMinimal25Packages = recurseIntoAttrs beam_minimal.packages.erlang_25; beamMinimal26Packages = recurseIntoAttrs beam_minimal.packages.erlang_26; beamMinimal27Packages = recurseIntoAttrs beam_minimal.packages.erlang_27; + # 28 is pre-release + beamMinimal28Packages = dontRecurseIntoAttrs beam_minimal.packages.erlang_28; erlang_language_platform = callPackage ../by-name/er/erlang-language-platform/package.nix { }; diff --git a/pkgs/top-level/beam-packages.nix b/pkgs/top-level/beam-packages.nix index 1c039da6b96f..3e2fdd18d0ae 100644 --- a/pkgs/top-level/beam-packages.nix +++ b/pkgs/top-level/beam-packages.nix @@ -31,6 +31,14 @@ in # # Three versions are supported according to https://github.com/erlang/otp/security + erlang_28 = self.beamLib.callErlang ../development/interpreters/erlang/28.nix { + wxGTK = wxGTK32; + parallelBuild = true; + # ex_doc failing to build with erlang 28 + inherit (beam_nodocs.packages.erlang_27) ex_doc; + inherit ex_docSupport wxSupport systemdSupport; + }; + erlang_27 = self.beamLib.callErlang ../development/interpreters/erlang/27.nix { wxGTK = wxGTK32; parallelBuild = true; @@ -76,6 +84,7 @@ in # appropriate Erlang/OTP version. packages = { erlang = self.packages.${self.latestVersion}; + erlang_28 = self.packagesWith self.interpreters.erlang_28; erlang_27 = self.packagesWith self.interpreters.erlang_27; erlang_26 = self.packagesWith self.interpreters.erlang_26; erlang_25 = self.packagesWith self.interpreters.erlang_25;