From c761b32f7791ec3281c062cc6904273cf7c81e4e Mon Sep 17 00:00:00 2001 From: Dominic Shelton Date: Thu, 28 Dec 2023 16:21:13 +1100 Subject: swaylock-fancy: unstable-2023-11-21 -> unstable-2023-12-22 --- pkgs/by-name/sw/swaylock-fancy/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/by-name/sw/swaylock-fancy/package.nix b/pkgs/by-name/sw/swaylock-fancy/package.nix index 83d56def4dcc..d821863e84a7 100644 --- a/pkgs/by-name/sw/swaylock-fancy/package.nix +++ b/pkgs/by-name/sw/swaylock-fancy/package.nix @@ -31,13 +31,13 @@ in stdenv.mkDerivation { pname = "swaylock-fancy"; - version = "unstable-2023-11-21"; + version = "unstable-2023-12-22"; src = fetchFromGitHub { owner = "Big-B"; repo = "swaylock-fancy"; - rev = "ff37ae3c6d0f100f81ff64fdb9d422c37de2f4f6"; - hash = "sha256-oS4YCbZOIrMP4QSM5eHWzTn18k3w2OnJ2k+64x/DnuM="; + rev = "0b93740e1dfc39883c125c212a1adc16b01c14f1"; + hash = "sha256-ko4SeHGNBiPMvxFXhD+U2r0Mwc14C2IN5CaJYI0V8u8="; }; postPatch = '' -- cgit 1.4.1 From 37615c68b436106e27ea6f91242c39ec0f8d0082 Mon Sep 17 00:00:00 2001 From: Madoura Date: Tue, 9 Jan 2024 07:53:40 -0600 Subject: kernel/common-config: add note on when to remove conditional and make default yes for bcachefs --- pkgs/os-specific/linux/kernel/common-config.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs') diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 2aacb88dc87e..ecab205f989a 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -478,6 +478,7 @@ let BTRFS_FS_POSIX_ACL = yes; + # FIXME: Make these by default 'yes' when LTS kernel (default) is at least version 6.7 BCACHEFS_QUOTA = whenAtLeast "6.7" (option yes); BCACHEFS_POSIX_ACL = whenAtLeast "6.7" (option yes); -- cgit 1.4.1 From b1ce631c29da99e29d4959b8e7e3e83ad91ef2e6 Mon Sep 17 00:00:00 2001 From: Madoura Date: Tue, 9 Jan 2024 07:57:36 -0600 Subject: aliases: change 'linux(Packages)_testing_bcachefs' notes to use 'linux(Packages)_latest' or any kernel version at least 6.7 --- pkgs/top-level/aliases.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index eca32582217b..f006446bf9d7 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -602,9 +602,9 @@ mapAliases ({ ''; linux_latest_hardened = linuxPackages_latest_hardened; - # Added 2023-11-18 - linuxPackages_testing_bcachefs = throw "'linuxPackages_testing_bcachefs' has been removed, please use 'linuxPackages_testing', or any other linux kernel with bcachefs support"; - linux_testing_bcachefs = throw "'linux_testing_bcachefs' has been removed, please use 'linux_testing', or any other linux kernel with bcachefs support"; + # Added 2023-11-18, modified 2024-01-09 + linuxPackages_testing_bcachefs = throw "'linuxPackages_testing_bcachefs' has been removed, please use 'linuxPackages_latest', any kernel version at least 6.7, or any other linux kernel with bcachefs support"; + linux_testing_bcachefs = throw "'linux_testing_bcachefs' has been removed, please use 'linux_latest', any kernel version at least 6.7, or any other linux kernel with bcachefs support"; lld_6 = throw "lld_6 has been removed from nixpkgs"; # Added 2024-01-08 lld_7 = throw "lld_7 has been removed from nixpkgs"; # Added 2023-11-19 -- cgit 1.4.1 From 6b8dc42ee1218515c17a8527e659368e58e7da39 Mon Sep 17 00:00:00 2001 From: Madoura Date: Tue, 9 Jan 2024 09:09:02 -0600 Subject: bcachefs-tools: fixup for version 1.4.1 --- pkgs/tools/filesystems/bcachefs-tools/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/filesystems/bcachefs-tools/default.nix b/pkgs/tools/filesystems/bcachefs-tools/default.nix index 17b438ac46b8..31d46d098978 100644 --- a/pkgs/tools/filesystems/bcachefs-tools/default.nix +++ b/pkgs/tools/filesystems/bcachefs-tools/default.nix @@ -19,6 +19,7 @@ , rustPlatform , makeWrapper , writeScript +, python3 , fuseSupport ? false }: @@ -26,7 +27,6 @@ stdenv.mkDerivation (finalAttrs: { pname = "bcachefs-tools"; version = "1.4.1"; - src = fetchFromGitHub { owner = "koverstreet"; repo = "bcachefs-tools"; @@ -69,8 +69,7 @@ stdenv.mkDerivation (finalAttrs: { checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ]; makeFlags = [ - "DESTDIR=${placeholder "out"}" - "PREFIX=" + "PREFIX=${placeholder "out"}" "VERSION=${finalAttrs.version}" "INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools" ]; @@ -79,6 +78,17 @@ stdenv.mkDerivation (finalAttrs: { rm tests/test_fuse.py ''; + # Tries to install to the 'systemd-minimal' and 'udev' nix installation paths + installFlags = [ + "PKGCONFIG_SERVICEDIR=$(out)/lib/systemd/system" + "PKGCONFIG_UDEVDIR=$(out)/lib/udev" + ]; + + postInstall = '' + substituteInPlace $out/libexec/bcachefsck_all \ + --replace "/usr/bin/python3" "${python3}/bin/python3" + ''; + passthru = { tests = { smoke-test = nixosTests.bcachefs; -- cgit 1.4.1 From 5a06c7fc22d66e3ba031ab42f1dae04a418f6cda Mon Sep 17 00:00:00 2001 From: Madoura Date: Sun, 14 Jan 2024 18:19:22 -0600 Subject: bcachefs-tools: add comment on when to enable build tests --- pkgs/tools/filesystems/bcachefs-tools/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs') diff --git a/pkgs/tools/filesystems/bcachefs-tools/default.nix b/pkgs/tools/filesystems/bcachefs-tools/default.nix index 31d46d098978..f45e4b51953f 100644 --- a/pkgs/tools/filesystems/bcachefs-tools/default.nix +++ b/pkgs/tools/filesystems/bcachefs-tools/default.nix @@ -65,6 +65,7 @@ stdenv.mkDerivation (finalAttrs: { udev ] ++ lib.optional fuseSupport fuse3; + # FIXME: Try enabling this once the default linux kernel is at least 6.7 doCheck = false; # needs bcachefs module loaded on builder checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ]; -- cgit 1.4.1 From 874c91834c0be39e7e9dbb366d2a1d309a4f928c Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Wed, 17 Jan 2024 08:59:05 +0100 Subject: linux: drop redundant bcachefs option hint --- pkgs/os-specific/linux/kernel/common-config.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index ecab205f989a..2aacb88dc87e 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -478,7 +478,6 @@ let BTRFS_FS_POSIX_ACL = yes; - # FIXME: Make these by default 'yes' when LTS kernel (default) is at least version 6.7 BCACHEFS_QUOTA = whenAtLeast "6.7" (option yes); BCACHEFS_POSIX_ACL = whenAtLeast "6.7" (option yes); -- cgit 1.4.1 From d4f67bdfb903f5793977cd6c2f0d0a427a2b22e5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 22 Jan 2024 15:39:05 +0000 Subject: nwg-displays: 0.3.10 -> 0.3.12 --- pkgs/applications/misc/nwg-displays/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/misc/nwg-displays/default.nix b/pkgs/applications/misc/nwg-displays/default.nix index f9f6ad429924..804198d5a641 100644 --- a/pkgs/applications/misc/nwg-displays/default.nix +++ b/pkgs/applications/misc/nwg-displays/default.nix @@ -14,13 +14,13 @@ python310Packages.buildPythonApplication rec { pname = "nwg-displays"; - version = "0.3.10"; + version = "0.3.12"; src = fetchFromGitHub { owner = "nwg-piotr"; repo = "nwg-displays"; - rev = "v${version}"; - hash = "sha256-clL34Ewzf0sJEWiye4L4e1RrPFIHkmotLpPaibGvVY4="; + rev = "refs/tags/v${version}"; + hash = "sha256-cr+2ejpXEOg0e86tT37o9400J299DQSkOrQUZE5+V2s="; }; nativeBuildInputs = [ -- cgit 1.4.1 From e3c43c5ccbd19946b2c17bd27bf5057f8e7ec75d Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 14 Jan 2024 18:04:06 +0900 Subject: sudachi-rs: set updateScript --- pkgs/by-name/su/sudachi-rs/package.nix | 21 ++++++++++++++++----- .../python-modules/sudachipy/default.nix | 4 ++++ 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'pkgs') diff --git a/pkgs/by-name/su/sudachi-rs/package.nix b/pkgs/by-name/su/sudachi-rs/package.nix index f55a24e41e79..488f56321f71 100644 --- a/pkgs/by-name/su/sudachi-rs/package.nix +++ b/pkgs/by-name/su/sudachi-rs/package.nix @@ -4,6 +4,7 @@ , sudachidict , runCommand , sudachi-rs +, writeScript }: rustPlatform.buildRustPackage rec { @@ -30,12 +31,22 @@ rustPlatform.buildRustPackage rec { install -Dm644 resources/* -t $out/share/resources ''; - passthru.tests = { - # detects an error that sudachidict is not found - cli = runCommand "${pname}-cli-test" { } '' - mkdir $out - echo "高輪ゲートウェイ駅" | ${lib.getExe sudachi-rs} > $out/result + passthru = { + updateScript = writeScript "update.sh" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p nix-update + + set -eu -o pipefail + nix-update sudachi-rs + nix-update --version=skip python3Packages.sudachipy ''; + tests = { + # detects an error that sudachidict is not found + cli = runCommand "${pname}-cli-test" { } '' + mkdir $out + echo "高輪ゲートウェイ駅" | ${lib.getExe sudachi-rs} > $out/result + ''; + }; }; meta = with lib; { diff --git a/pkgs/development/python-modules/sudachipy/default.nix b/pkgs/development/python-modules/sudachipy/default.nix index bfaf9be85846..9ebe819f0185 100644 --- a/pkgs/development/python-modules/sudachipy/default.nix +++ b/pkgs/development/python-modules/sudachipy/default.nix @@ -47,6 +47,10 @@ buildPythonPackage rec { "sudachipy" ]; + passthru = { + inherit (sudachi-rs) updateScript; + }; + meta = sudachi-rs.meta // { homepage = "https://github.com/WorksApplications/sudachi.rs/tree/develop/python"; mainProgram = "sudachipy"; -- cgit 1.4.1 From ea1c11224443a436faf6d369077a7ae117ff1e86 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 15 Jan 2024 12:23:06 +0900 Subject: sudachi-rs: 0.6.7 -> 0.6.8 Changelog: https://github.com/WorksApplications/sudachi.rs/blob/refs/tags/v0.6.8/CHANGELOG.md --- pkgs/by-name/su/sudachi-rs/package.nix | 6 +++--- pkgs/development/python-modules/sudachipy/default.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs') diff --git a/pkgs/by-name/su/sudachi-rs/package.nix b/pkgs/by-name/su/sudachi-rs/package.nix index 488f56321f71..24ae7a9873e8 100644 --- a/pkgs/by-name/su/sudachi-rs/package.nix +++ b/pkgs/by-name/su/sudachi-rs/package.nix @@ -9,13 +9,13 @@ rustPlatform.buildRustPackage rec { pname = "sudachi-rs"; - version = "0.6.7"; + version = "0.6.8"; src = fetchFromGitHub { owner = "WorksApplications"; repo = "sudachi.rs"; rev = "refs/tags/v${version}"; - hash = "sha256-VzNOI6PP9sKBsNfB5yIxAI8jI8TEdM4tD49Jl/2tkSE="; + hash = "sha256-9GXU+YDPuQ+roqQfUE5q17Hl6AopsvGhRPjZ+Ui+n24="; }; postPatch = '' @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage rec { --replace '"resources"' '"${placeholder "out"}/share/resources"' ''; - cargoHash = "sha256-b2NtgHcMkimzFFuqohAo9KdSaIq6oi3qo/k8/VugyFs="; + cargoHash = "sha256-Ufo3dB2KGDDNiebp7hLhQrUMLsefO8wRpJQDz57Yb8Y="; # prepare the resources before the build so that the binary can find sudachidict preBuild = '' diff --git a/pkgs/development/python-modules/sudachipy/default.nix b/pkgs/development/python-modules/sudachipy/default.nix index 9ebe819f0185..04460f5274c1 100644 --- a/pkgs/development/python-modules/sudachipy/default.nix +++ b/pkgs/development/python-modules/sudachipy/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-Am+ae2lgnndSDzf0GF8R1i6OPLdIlm2dLThqYqXbscA="; + hash = "sha256-ARwvThfATDdzBTjPFr9yjbE/0eYvp/TCZOEGbUupJmU="; }; nativeBuildInputs = [ -- cgit 1.4.1 From 39d2a724c9f380dcd20a52a04664766a5863563b Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 23 Jan 2024 19:09:21 +0900 Subject: python311Packages.sudachi-dict: fix build --- pkgs/development/python-modules/sudachidict/default.nix | 5 +++++ pkgs/development/python-modules/sudachipy/default.nix | 14 ++++++++++++++ 2 files changed, 19 insertions(+) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/sudachidict/default.nix b/pkgs/development/python-modules/sudachidict/default.nix index 72826908612c..41a359110474 100644 --- a/pkgs/development/python-modules/sudachidict/default.nix +++ b/pkgs/development/python-modules/sudachidict/default.nix @@ -2,6 +2,7 @@ , fetchFromGitHub , sudachidict , setuptools +, sudachipy }: buildPythonPackage rec { @@ -33,6 +34,10 @@ buildPythonPackage rec { setuptools ]; + propagatedBuildInputs = [ + sudachipy + ]; + # we need to prepare some files before the build # https://github.com/WorksApplications/SudachiDict/blob/develop/package_python.sh preBuild = '' diff --git a/pkgs/development/python-modules/sudachipy/default.nix b/pkgs/development/python-modules/sudachipy/default.nix index 04460f5274c1..3e3bd5b4adf6 100644 --- a/pkgs/development/python-modules/sudachipy/default.nix +++ b/pkgs/development/python-modules/sudachipy/default.nix @@ -10,6 +10,7 @@ , pytestCheckHook , sudachidict-core , tokenizers +, sudachipy }: buildPythonPackage rec { @@ -37,6 +38,9 @@ buildPythonPackage rec { cd python ''; + # avoid infinite recursion due to sudachidict + doCheck = false; + nativeCheckInputs = [ pytestCheckHook sudachidict-core @@ -49,6 +53,16 @@ buildPythonPackage rec { passthru = { inherit (sudachi-rs) updateScript; + tests = { + pytest = sudachipy.overridePythonAttrs ( + _: { + doCheck = true; + # avoid catchConflicts of sudachipy + # we don't need to install this package since it is just a test + dontInstall = true; + } + ); + }; }; meta = sudachi-rs.meta // { -- cgit 1.4.1 From 93f9595c36676fbfece20ae64c00008c85ec8d07 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 24 Jan 2024 18:59:11 +0000 Subject: kdash: 0.4.7 -> 0.5.0 --- pkgs/development/tools/kdash/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/tools/kdash/default.nix b/pkgs/development/tools/kdash/default.nix index 7e529337e5d9..c7f4e8b7525f 100644 --- a/pkgs/development/tools/kdash/default.nix +++ b/pkgs/development/tools/kdash/default.nix @@ -12,13 +12,13 @@ rustPlatform.buildRustPackage rec { pname = "kdash"; - version = "0.4.7"; + version = "0.5.0"; src = fetchFromGitHub { owner = "kdash-rs"; repo = pname; rev = "v${version}"; - sha256 = "sha256-KQ1SLnXtox/bIV32guEfC2LSt8LDWGSG5b9i0gqS2Yc="; + sha256 = "sha256-Vk0Pf5uF9AANv/vf32ZrICJJTp6QRsR/nFW40xnkImo="; }; nativeBuildInputs = [ perl python3 pkg-config ]; @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage rec { buildInputs = [ openssl xorg.xcbutil ] ++ lib.optional stdenv.isDarwin AppKit; - cargoHash = "sha256-bgS93o654xDVz2OMFy1mwxCKQESV8MPZ4Mjb0IdypLU="; + cargoHash = "sha256-gY4ywjTokEc5Uv4InARH2s3WYiPGYSDDWk2kltyQa+0="; meta = with lib; { description = "A simple and fast dashboard for Kubernetes"; -- cgit 1.4.1 From ee8267f6a225a1dc7571302640cef2418d54f4c6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 24 Jan 2024 23:31:30 +0000 Subject: cargo-show-asm: 0.2.28 -> 0.2.29 --- pkgs/development/tools/rust/cargo-show-asm/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/tools/rust/cargo-show-asm/default.nix b/pkgs/development/tools/rust/cargo-show-asm/default.nix index 903022c6f876..139ea6c7f068 100644 --- a/pkgs/development/tools/rust/cargo-show-asm/default.nix +++ b/pkgs/development/tools/rust/cargo-show-asm/default.nix @@ -9,14 +9,14 @@ rustPlatform.buildRustPackage rec { pname = "cargo-show-asm"; - version = "0.2.28"; + version = "0.2.29"; src = fetchCrate { inherit pname version; - hash = "sha256-DZKl3FRgBzrgKDl/eVOFRW2jZXT8ul+ZgZbBxZcmgss="; + hash = "sha256-9Q+BnzgoD95eKkMZrQF6+khbx5wqnER83PK3vbRrRv8="; }; - cargoHash = "sha256-QaRqrd4wHuMfAYy/vqkwdoWB1BDGx0YyjvFNqjSOM2I="; + cargoHash = "sha256-cyFAilqpaO6TDtJUmweUHYEpWxUAhHDYgCUGSz5EBFU="; nativeBuildInputs = [ installShellFiles -- cgit 1.4.1 From 88c2708f0e70bfbadc969a3de29df989068e6f7e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 25 Jan 2024 01:01:19 +0000 Subject: pdm: 2.12.1 -> 2.12.2 --- pkgs/tools/package-management/pdm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/package-management/pdm/default.nix b/pkgs/tools/package-management/pdm/default.nix index b8f1b00b844d..7395bffd8458 100644 --- a/pkgs/tools/package-management/pdm/default.nix +++ b/pkgs/tools/package-management/pdm/default.nix @@ -32,14 +32,14 @@ in with python.pkgs; buildPythonApplication rec { pname = "pdm"; - version = "2.12.1"; + version = "2.12.2"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-OaKroZmGyUWnm/WEw3dSheJOnH+O2KYDgVthxfrF20w="; + hash = "sha256-s8pKsQetZbV/4TEuQ2Dh97PXxe2BqEG27Uizd3hi7Vc="; }; nativeBuildInputs = [ -- cgit 1.4.1 From cdb081065109ef6873c107be1594a4ceab3f6d7a Mon Sep 17 00:00:00 2001 From: Mustafa Çalışkan Date: Sat, 28 Oct 2023 08:18:09 +0300 Subject: fritzing: unstable-2022-07-01 -> 1.0.1 --- .../science/electronics/fritzing/default.nix | 50 +++++++++++++++++----- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 40 insertions(+), 12 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/science/electronics/fritzing/default.nix b/pkgs/applications/science/electronics/fritzing/default.nix index d5779abc2c6b..46307a133de3 100644 --- a/pkgs/applications/science/electronics/fritzing/default.nix +++ b/pkgs/applications/science/electronics/fritzing/default.nix @@ -9,6 +9,8 @@ , qtsvg , qttools , qtserialport +, qtwayland +, qt5compat , boost , libngspice , libgit2 @@ -18,38 +20,60 @@ let # SHA256 of the fritzing-parts HEAD on the master branch, # which contains the latest stable parts definitions - partsSha = "4713511c894cb2894eae505b9307c6555afcc32c"; + partsSha = "015626e6cafb1fc7831c2e536d97ca2275a83d32"; parts = fetchFromGitHub { owner = "fritzing"; repo = "fritzing-parts"; rev = partsSha; - sha256 = "sha256-QiOGWc+99MJhOVrXyNOinR8rTVvW/E+wPfoB6QvbhY0="; + hash = "sha256-5jw56cqxpT/8bf1q551WG53J6Lw5pH0HEtRUoNNMc+A="; + }; + + # Header-only library + svgpp = fetchFromGitHub { + owner = "svgpp"; + repo = "svgpp"; + rev = "v1.3.0"; + hash = "sha256-kJEVnMYnDF7bThDB60bGXalYgpn9c5/JCZkRSK5GoE4="; }; in stdenv.mkDerivation rec { pname = "fritzing"; - version = "unstable-2022-07-01"; + version = "1.0.1"; src = fetchFromGitHub { owner = pname; repo = "fritzing-app"; - rev = "40d23c29b0463d5c968c3c4b34ed5ffc05c5a258"; - sha256 = "sha256-smvfuxQWF/LMFFXHOKb3zUZsEet/XoiaxXOR5QMaYzw="; + rev = "8f5f1373835050ce014299c78d91c24beea9b633"; + hash = "sha256-jLVNzSh2KwXpi3begtp/53sdBmQQbCnKMCm2p770etg="; }; - buildInputs = [ qtbase qtsvg qtserialport boost libgit2 quazip libngspice ]; - nativeBuildInputs = [ qmake pkg-config qttools wrapQtAppsHook ]; - patches = [ + # Fix error caused by implicit call (fetchpatch { - url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-Quick-Dirty-patch-to-allow-finding-quazip-qt5-on-Arc.patch?h=fritzing&id=1ae0dc88464f375a54b156e6761315bcb04bcc1f"; - sha256 = "sha256-iS18EWw920gyeXDoHBRGwXvwMJurJS21H77Erl+fqog="; + url = "https://aur.archlinux.org/cgit/aur.git/plain/0003-ParseResult-operator-bool-in-explicit.patch?h=fritzing&id=b2c79b55f0a2811e80bb1136b1e021fbc56937c9"; + hash = "sha256-9HdcNqLHEB0HQbF7AaTdUIJUbafwsRKPA+wfF4g8veU="; }) ]; + nativeBuildInputs = [ qmake pkg-config qttools wrapQtAppsHook ]; + buildInputs = [ + qtbase + qtsvg + qtserialport + qtwayland + qt5compat + boost + libgit2 + quazip + libngspice + ]; + postPatch = '' + # Use packaged quazip, libgit and ngspice + sed -i "/pri\/quazipdetect.pri/d" phoenix.pro + sed -i "/pri\/spicedetect.pri/d" phoenix.pro substituteInPlace phoenix.pro \ --replace 'LIBGIT_STATIC = true' 'LIBGIT_STATIC = false' @@ -61,7 +85,11 @@ stdenv.mkDerivation rec { cp -a ${parts}/* parts/ ''; - env.NIX_CFLAGS_COMPILE = "-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip"; + env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [ + "-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip" + "-I${svgpp}/include" + ]; + env.NIX_LDFLAGS = "-lquazip1-qt${lib.versions.major qtbase.version}"; qmakeFlags = [ "phoenix.pro" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1dae256051e9..90effb56ec2e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31622,7 +31622,7 @@ with pkgs; freewheeling = callPackage ../applications/audio/freewheeling { }; - fritzing = libsForQt5.callPackage ../applications/science/electronics/fritzing { }; + fritzing = qt6Packages.callPackage ../applications/science/electronics/fritzing { }; fritzprofiles = with python3.pkgs; toPythonApplication fritzprofiles; -- cgit 1.4.1 From af2562d930d7888812f39fc565df5b11084fdaff Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:17:11 +0800 Subject: cargo-deny: add SystemConfiguration framework on darwin --- pkgs/development/tools/rust/cargo-deny/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs') diff --git a/pkgs/development/tools/rust/cargo-deny/default.nix b/pkgs/development/tools/rust/cargo-deny/default.nix index 6dd9eb589631..5c0d0f7ddf39 100644 --- a/pkgs/development/tools/rust/cargo-deny/default.nix +++ b/pkgs/development/tools/rust/cargo-deny/default.nix @@ -28,6 +28,7 @@ rustPlatform.buildRustPackage rec { zstd ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration ]; env = { -- cgit 1.4.1