Skip to content

buku: make bukuserver optional#156190

Merged
Ma27 merged 2 commits intoNixOS:masterfrom
arcnmx:buku-noserver
Jan 23, 2022
Merged

buku: make bukuserver optional#156190
Ma27 merged 2 commits intoNixOS:masterfrom
arcnmx:buku-noserver

Conversation

@arcnmx
Copy link
Member

@arcnmx arcnmx commented Jan 22, 2022

Motivation for this change

bukuserver (an optional web GUI frontend for buku) depends on a large number of flask packages, which break in nixpkgs very often - I've been forced to remove buku from my system closure at least a couple times a year at this point, even though I have no use for this web interface. It currently does not build, which means buku cannot be used at all.

Once #156188 (or something similar that fixes flask-admin) is landed, it will at least build and can be turned back on by default - though with buku being primarily a command-line tool (plus optional browser extensions that can serve as an interface too), it seems unlikely that a majority of users even use this interface to begin with? We could also maybe consider adding pkgs.bukuserver rather than building them both together.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.05 Release Notes (or backporting 21.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

cc @dermetfan, do you still use this?

bukuserver (an optional web GUI frontend for buku) depends on a large
number of flask packages, which break in nixpkgs very often.
Comment on lines 55 to +58
flake8
pyyaml
mypy-extensions
click
Copy link
Member

Choose a reason for hiding this comment

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

pytest-cov, pylint and flake8 should be removed. They only check cosmetic stuff and often break for no good reason.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ofborg ofborg bot requested review from Ma27 and infinisil January 22, 2022 19:06
@ofborg ofborg bot added 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. labels Jan 22, 2022
@dermetfan
Copy link
Member

cc @dermetfan, do you still use this?

No, never really did, I just noticed the broken package when checking out buku at the time. I agree with this change.

@Ma27 Ma27 merged commit f6f0e1e into NixOS:master Jan 23, 2022
@arcnmx arcnmx deleted the buku-noserver branch November 26, 2022 05:54
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants