Repository navigation
fuse2: drop - #578828
fuse2: drop#578828
Conversation
fa0bb87 to
2eebde6
Compare
|
There was a problem hiding this comment.
You need to drop the reference in nixos/programs/fuse.nix
here:
nixpkgs/nixos/modules/programs/fuse.nix
Line 53 in 6ac6ac1
GrimmTheShrimp
left a comment
There was a problem hiding this comment.
Couple notes, but very close, and i want this
| passthru.updateScript = nix-update-script { }; | ||
|
|
||
| meta = { | ||
| broken = true; # stuck on fuse2 via github.com/winfsp/cgofuse/fuse |
There was a problem hiding this comment.
You sure? Supposedly fuse3 is supported: winfsp/cgofuse@a40e268, setting a go tag.
Following diff at least succeeds to build:
diff --git a/pkgs/by-name/na/nak/package.nix b/pkgs/by-name/na/nak/package.nix
index e5799f85e868..38cb483777ca 100644
--- a/pkgs/by-name/na/nak/package.nix
+++ b/pkgs/by-name/na/nak/package.nix
@@ -35,6 +35,9 @@ buildGoModule (finalAttrs: {
fuse
];
+ tags = [ "fuse3" ];
+ env.CGO_CFLAGS = "-I${lib.getDev fuse}/include/fuse3";
+
# Integration tests fail (requires connection to relays)
doCheck = false;
@@ -44,7 +47,6 @@ buildGoModule (finalAttrs: {
passthru.updateScript = nix-update-script { };
meta = {
- broken = true; # stuck on fuse2 via github.com/winfsp/cgofuse/fuse
description = "Command-line tool for Nostr things";
homepage = "https://github.com/fiatjaf/nak";
changelog = "https://github.com/fiatjaf/nak/releases/tag/${finalAttrs.src.tag}";
| substituteInPlace fuse.py --replace \ | ||
| "find_library('fuse')" "'${lib.getLib pkgs.fuse}/lib/libfuse.so'" | ||
| substituteInPlace fuse.py --replace-fail \ | ||
| "find_library('fuse')" "'${lib.getLib pkgs.fuse3}/lib/libfuse3.so'" |
There was a problem hiding this comment.
urgs, calling pkgs here is super ugly, doesn't this turbo-explode on splicing? And fuse -> fuse3 as a simple replace is unexpected, but i didn't dig.
There was a problem hiding this comment.
No idea, but I didn't make it worse.
| ); | ||
| fuse = fuse2; | ||
| fuse2 = lowPrio (if stdenv.hostPlatform.isDarwin then macfuse-stubs else fusePackages.fuse_2); | ||
| fuse = fuse3; |
There was a problem hiding this comment.
this may cause problems for out-of-tree users. I'd have preferred just dropping (unversioned) fuse attr for a release cycle, but if you want to do this i won't stop you.
Stuck on an eol fuse 2.x version removed in NixOS 26.11.
| frozen-bubble = throw "'frozen-bubble' has been removed because it is broken and unmaintained"; # Added 2026-05-17 | ||
| frugal = throw "'frugal' was removed because upstream has been pulled"; # Added 2025-12-20 | ||
| fscrypt-experimental = warnAlias "'fscrypt-experimental' has been renamed to/replaced by 'fscrypt'" fscrypt; # Added 2026-01-19 | ||
| fuse = throw "'fuse' was an alias for `fuse2`, which has been removed. Migrate to `fuse3` instead."; # Added 2026-10-26 |
There was a problem hiding this comment.
You should also drop fuse from every package, its fine because they already broken
There was a problem hiding this comment.
Decided not to remove the fuse name after all. Someone else can do that work.
The package is considered end of life and was last maintainted in 2019. We spent the 26.11 cycle working on removing our reliance on it and this is the final stretch.
The package is considered end of life and was last maintainted in 2019.
We spent the 26.11 cycle working on removing our reliance on it and this
is the final stretch.
Closes: #526161
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.