Skip to content

spotiflac: init at 7.1.0#486412

Open
Superredstone wants to merge 2 commits intoNixOS:masterfrom
Superredstone:master
Open

spotiflac: init at 7.1.0#486412
Superredstone wants to merge 2 commits intoNixOS:masterfrom
Superredstone:master

Conversation

@Superredstone
Copy link

@Superredstone Superredstone commented Feb 2, 2026

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Feb 2, 2026
@Henry-Hiles
Copy link
Contributor

There should be two commits only. The first will be adding you as a maintainer, the second adding the package.

@Superredstone
Copy link
Author

There should be two commits only. The first will be adding you as a maintainer, the second adding the package.

Should I delete the pr and make a new one?

@Henry-Hiles
Copy link
Contributor

There should be two commits only. The first will be adding you as a maintainer, the second adding the package.

Should I delete the pr and make a new one?

No, just rebase or change history another way and force push.

@Superredstone
Copy link
Author

There should be two commits only. The first will be adding you as a maintainer, the second adding the package.

Should I delete the pr and make a new one?

No, just rebase or change history another way and force push.

I squashed six commits into two. Did I do it correctly?

@nixpkgs-ci nixpkgs-ci bot removed the 8.has: package (new) This PR adds a new package label Feb 5, 2026
@Henry-Hiles
Copy link
Contributor

Close, but your package init commit should say "init at" like the title of the PR does.

@Superredstone
Copy link
Author

Fixed

@nixpkgs-ci nixpkgs-ci bot added the 8.has: package (new) This PR adds a new package label Feb 5, 2026

overrideModAttrs = {
preBuild = ''
wails build -tags webkit2_41 -o spotiflac
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we avoid two time built?

Copy link
Author

@Superredstone Superredstone Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering for two days straight why the build process started two times

EDIT: typo

@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Feb 6, 2026
Copy link
Contributor

@Henry-Hiles Henry-Hiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Henry-Hiles Henry-Hiles added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Feb 6, 2026
@nixpkgs-ci nixpkgs-ci bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Feb 6, 2026
@Bot-wxt1221
Copy link
Member

Look at your first commit. It contains packaging.

@Superredstone
Copy link
Author

Superredstone commented Feb 7, 2026

I hope that after this push everything is fine

Copy link
Member

@Bot-wxt1221 Bot-wxt1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Superredstone
Copy link
Author

I still get the following error when building with buildGo126Module, I'm guessing that there are issues with how wails build works.

>   ERROR   err: exit status 1: stderr: go: go.mod requires go >= 1.26 (running go 1.25.7; GOTOOLCHAIN=local)

@SuperSandro2000
Copy link
Member

When rebasing against master it works for me but when I start it, I get this:

image

Please wrap that in.

@Superredstone
Copy link
Author

Superredstone commented Mar 1, 2026

When rebasing against master it works for me but when I start it, I get this:
image

Please wrap that in.

Doesn't embedding FFmpeg require for it to be built from source?

EDIT: to be clear FFmpeg gets downloaded as a binary if you press "Install now" and it works.

EDIT 2: some time ago i wasn't able to embed ffmpeg without rebuilding it from source (it requires a lot of time to compile), which was probably caused by a broken ffmpeg package.

@Superredstone Superredstone changed the title spotiflac: init at 7.0.7 spotiflac: init at 7.0.9 Mar 1, 2026
@Superredstone
Copy link
Author

I was able to update to 7.0.9 but I had not luck with 7.1.0.

@Hythera
Copy link
Member

Hythera commented Mar 1, 2026

Doesn't embedding FFmpeg require for it to be built from source?

It shouldn't. What probably happened is that ffmpeg was updated on master and wasn't yet build by hydra and cached so you had to rebuild it manually.

@Superredstone
Copy link
Author

I was now able to embed ffmpeg as a dependency, I hope that this is the correct way to do it and not an hack

    wrapProgram $out/bin/spotiflac \
      --prefix PATH : ${lib.makeBinPath [ ffmpeg_7-headless ]}

@Superredstone Superredstone changed the title spotiflac: init at 7.0.9 spotiflac: init at 7.1.0 Mar 2, 2026
@Superredstone
Copy link
Author

I finally managed to get version 7.1.0 to compile by forcefully switching the Go toolchain to 1.26.0, Wails wasn’t detecting it otherwise.

overrideModAttrs = {
preBuild = ''
GOTOOLCHAIN=go1.26.0 wails build -compiler '${go_1_26}/bin/go' -tags webkit2_41 -o spotiflac
'';
};
buildPhase = ''
runHook preBuild
GOTOOLCHAIN=go1.26.0 wails build -compiler '${go_1_26}/bin/go' -tags webkit2_41 -o spotiflac
runHook postBuild
'';

@aciceri
Copy link
Member

aciceri commented Mar 3, 2026

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 486412
Commit: 069292a01abb88e268d8201738605a4e9d723bf3


x86_64-linux

❌ 1 package failed to build:
  • spotiflac

aarch64-linux

❌ 1 package failed to build:
  • spotiflac

Copy link
Member

@aciceri aciceri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build seems to fail now.
However I don't know if it's due to my environment but the window is glitched, wherever I move the cursor if I click it resizes the window and I can't focus the main textbox.

PS: please rename the PR's title with the new version

makeWrapper,
}:

buildGoModule (finalAttrs: {
Copy link
Member

@aciceri aciceri Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
buildGoModule (finalAttrs: {
buildGo126Module (finalAttrs: {

With just this change it seems to build.

@Superredstone
Copy link
Author

I assumed that buildGo126Module was not necessary as i explicitly specified what compiler to use.

@Superredstone
Copy link
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 486412
Commit: b7c30a38dc83f750d89b8d1dff33316254cf28ad


x86_64-linux

✅ 1 package built:
  • spotiflac

@aciceri
Copy link
Member

aciceri commented Mar 4, 2026

I assumed that buildGo126Module was not necessary as i explicitly specified what compiler to use.

Look here, buildGoModule is just an alias for buildGo125Module.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this locally with a patch to wails to not override tools from PATH and it builds but I cannot force push it because the branch was opened from the default branch.

#497974

@sound-chimera
Copy link

I've also experienced problems with small fonts and an unusable glitchy interface, it's probably because of this, and adding wrapGAppsHook3 to nativeBuildInputs fixed it for me locally.

@SuperSandro2000
Copy link
Member

Please rebase on master when the wails fix is merged and apply my suggested cleanups.

pnpm_10
wails
makeWrapper
wrapGAppsHook3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are now double wrapping, so please disable the automatic wrapping with gapps and manually add it to makeWrapper.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  dontWrapGApps = true;


  makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];

Is this correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants