Skip to content

koodo-reader: 1.7.4 -> 2.0.9#395560

Merged
pbsds merged 1 commit intoNixOS:masterfrom
TomaSajt:koodo-reader
Aug 9, 2025
Merged

koodo-reader: 1.7.4 -> 2.0.9#395560
pbsds merged 1 commit intoNixOS:masterfrom
TomaSajt:koodo-reader

Conversation

@TomaSajt
Copy link
Contributor

@TomaSajt TomaSajt commented Apr 2, 2025

The app now has node-gyp based native deps so I needed to add python, electron-headers, and some other hacks.

https://github.com/koodo-reader/koodo-reader/releases

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 6, 2025
@TomaSajt
Copy link
Contributor Author

TomaSajt commented May 3, 2025

Missing the xcbuild from nativeBuildInputs...

IIRC this is because yarnConfigHook doesn't set up the same node-gyp override as npmConfigHook (npmConfigHook patches the xcbuild dependency out).

I should probably look into whether or not we should also have this logic in the yarnConfigHook.

@TomaSajt TomaSajt force-pushed the koodo-reader branch 2 times, most recently from 3e15208 to 76cac51 Compare May 3, 2025 01:16
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 3, 2025
@TomaSajt TomaSajt changed the title koodo-reader: 1.7.4 -> 1.9.0 koodo-reader: 1.7.4 -> 2.0.0 Jun 3, 2025
@github-actions github-actions bot added the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Jun 3, 2025
@TomaSajt TomaSajt force-pushed the koodo-reader branch 2 times, most recently from 02f6401 to e8ca53c Compare June 3, 2025 12:31
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does env.CSC_IDENTITY_AUTO_DISCOVERY = "false"; not actually work?

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 26, 2025
@ghost
Copy link

ghost commented Aug 9, 2025

2.0.9 is out

@TomaSajt TomaSajt changed the title koodo-reader: 1.7.4 -> 2.0.0 koodo-reader: 1.7.4 -> 2.0.9 Aug 9, 2025
@TomaSajt
Copy link
Contributor Author

TomaSajt commented Aug 9, 2025

Updated to 2.0.9

Could you test it out?

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 9, 2025
@ghost
Copy link

ghost commented Aug 9, 2025

Could you test it out?

good in linux x64

@pbsds pbsds merged commit a8cae94 into NixOS:master Aug 9, 2025
26 of 28 checks passed
@ghost
Copy link

ghost commented Aug 9, 2025

koodo-reader> $ /nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/.bin/electron-builder --dir -c.electronDist=electron-dist -c.electronVersion=35.7.4
koodo-reader>   • injecting environment  envFile=/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/electron-builder.env
koodo-reader>   • electron-builder  version=26.0.12 os=23.6.0
koodo-reader>   • loaded configuration  file=package.json ("build" field)
koodo-reader>   • @electron/rebuild already used by electron-builder, please consider to remove excess dependency from devDependencies
koodo-reader> 
koodo-reader> To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
koodo-reader>   • writing effective config  file=dist/builder-effective-config.yaml
koodo-reader>   • executing @electron/rebuild  electronVersion=35.7.4 arch=arm64 buildFromSource=false appDir=./
koodo-reader>   • installing native dependencies  arch=arm64
koodo-reader>   • preparing       moduleName=better-sqlite3 arch=arm64
koodo-reader>   • finished        moduleName=better-sqlite3 arch=arm64
koodo-reader>   • preparing       moduleName=cpu-features arch=arm64
koodo-reader>   • finished        moduleName=cpu-features arch=arm64
koodo-reader>   • completed installing native dependencies
koodo-reader>   • packaging       platform=darwin arch=arm64 electron=35.7.4 appOutDir=dist/mac-arm64
koodo-reader>   • custom electronDist provided but no zip found; assuming unpacked electron directory.  electronDist=electron-dist expectedFile=electron-v35.7.4-darwin-arm64.zip
koodo-reader>   • copying Electron  source=/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/electron-dist/Electron.app destination=/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/dist/mac-arm64/Electron.app
koodo-reader>   ⨯ spawn EPERM     failedTask=build stackTrace=Error: spawn EPERM
koodo-reader>     at ChildProcess.spawn (node:internal/child_process:420:11)
koodo-reader>     at spawn (node:child_process:754:9)
koodo-reader>     at execFile (node:child_process:347:17)
koodo-reader>     at /nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/builder-util/src/util.ts:99:13
koodo-reader>     at new Promise (<anonymous>)
koodo-reader>     at exec (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/builder-util/src/util.ts:98:10)
koodo-reader>     at getValidIdentities (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:234:11)
koodo-reader>     at _findIdentity (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:269:23)
koodo-reader>     at findIdentity (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:332:12)
koodo-reader>     at MacPackager.sign (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/macPackager.ts:257:36)
koodo-reader> error Command failed with exit code 1.
koodo-reader> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error: Cannot build '/nix/store/q7334322cc24ni94xi6h7zcy94gakfin-koodo-reader-2.0.9.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/l3j8d6bgg27dk66fa91h043nv9azynjp-koodo-reader-2.0.9
       Last 25 log lines:
       > To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
       >   • writing effective config  file=dist/builder-effective-config.yaml
       >   • executing @electron/rebuild  electronVersion=35.7.4 arch=arm64 buildFromSource=false appDir=./
       >   • installing native dependencies  arch=arm64
       >   • preparing       moduleName=better-sqlite3 arch=arm64
       >   • finished        moduleName=better-sqlite3 arch=arm64
       >   • preparing       moduleName=cpu-features arch=arm64
       >   • finished        moduleName=cpu-features arch=arm64
       >   • completed installing native dependencies
       >   • packaging       platform=darwin arch=arm64 electron=35.7.4 appOutDir=dist/mac-arm64
       >   • custom electronDist provided but no zip found; assuming unpacked electron directory.  electronDist=electron-dist expectedFile=electron-v35.7.4-darwin-arm64.zip
       >   • copying Electron  source=/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/electron-dist/Electron.app destination=/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/dist/mac-arm64/Electron.app
       >   ⨯ spawn EPERM     failedTask=build stackTrace=Error: spawn EPERM
       >     at ChildProcess.spawn (node:internal/child_process:420:11)
       >     at spawn (node:child_process:754:9)
       >     at execFile (node:child_process:347:17)
       >     at /nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/builder-util/src/util.ts:99:13
       >     at new Promise (<anonymous>)
       >     at exec (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/builder-util/src/util.ts:98:10)
       >     at getValidIdentities (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:234:11)
       >     at _findIdentity (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:269:23)
       >     at findIdentity (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/codeSign/macCodeSign.ts:332:12)
       >     at MacPackager.sign (/nix/var/nix/builds/nix-build-koodo-reader-2.0.9.drv-4903-1999501759/source/node_modules/app-builder-lib/src/macPackager.ts:257:36)
       > error Command failed with exit code 1.
       > info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
       For full logs, run:
         nix log /nix/store/q7334322cc24ni94xi6h7zcy94gakfin-koodo-reader-2.0.9.drv

@TomaSajt
Copy link
Contributor Author

TomaSajt commented Aug 9, 2025

Looks like yorenapu just deleted their account, that was quick...

@sotubani I'll create a followup PR where I try do disable the signing logic

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

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package 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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants