Skip to content

Commit 078ffe0

Browse files
committedMar 24, 2025
Fix squirreldisk
Currently the squirreldisk package is broken - it scans the directory, but does not display the results correctly (i.e., no graph and no file sizes are displayed). The reason is that parallel-disk-usage from nixpkgs has been updated to a version that does not work with squirreldisk anymore (i.e. changed JSON output format). The package now uses the binary of pdu that is distributed with the squirreldisk source, instead of the version from nixpkgs.
1 parent 4d82b26 commit 078ffe0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎pkgs/by-name/sq/squirreldisk/package.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
stdenv,
1616
copyDesktopItems,
1717
makeDesktopItem,
18+
autoPatchelfHook,
1819
}:
1920
let
2021
pname = "squirreldisk";
@@ -61,15 +62,13 @@ rustPlatform.buildRustPackage rec {
6162
cp -r ${frontend-build}/* frontend-build
6263
6364
substituteInPlace tauri.conf.json --replace-fail '"distDir": "../dist"' '"distDir": "./frontend-build"'
64-
65-
# Copy pdu binary from nixpkgs, since the default packaged binary has issues.
66-
cp ${parallel-disk-usage}/bin/pdu bin/pdu-${stdenv.hostPlatform.config}
6765
'';
6866

6967
nativeBuildInputs = [
7068
pkg-config
7169
wrapGAppsHook3
7270
copyDesktopItems
71+
autoPatchelfHook
7372
];
7473
buildInputs = [
7574
dbus

0 commit comments

Comments
 (0)
Failed to load comments.