Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

photoprism: init at 221102-905925b4d #199674

Merged
merged 2 commits into from Nov 6, 2022
Merged

Conversation

BeneSim
Copy link
Contributor

@BeneSim BeneSim commented Nov 5, 2022

Description of changes

Photoprism is a server-based application for browsing, organizing, and sharing your personal photo collection.

Most of this work was done by @Misterio77 and @newAM. I fixed the issues introduced by 7757aef that rendered the derivation unbuildable for me.
In addition i added/improved the following:

  • Updated to 221102-905925b4d
  • Assets are now stored under $out/share/photoprism
  • Binary is wrapped with environment variables that point to the runtime dependencies (Maybe there is some room for discussion here. Most, if not all of them are optional dependencies. I guess some are event redundant like darktable and rawtherapee)
  • Version is now also included in the binary (instead of default develop when running photoprism --version)
  • Stripped debug information from the binary

Currently runs in a nixos container on my storage server as a simple systemd service. Haven't looked at the module that has been developed in the previous PR, would use that as a base for a new PR once this one has been merged.

Fixes #96043 Supersedes #170953

It's my first contribution so any help would be really appreciated :)

Note: I ran nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD" where one derivation failed (flexoptix-app) getting the AppImage failed with a 404.

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.11 Release Notes (or backporting 22.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@thiagokokada thiagokokada left a comment

Choose a reason for hiding this comment

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

Please squash your commits. In the end you should have only two commits:

maintainers: add benesim
photoprism: init at 221102-905925b4d

@thiagokokada
Copy link
Contributor

Result of nixpkgs-review pr 199674 run on x86_64-linux 1

3 packages marked as broken and skipped:
  • dat
  • deltachat-electron
  • slack-dark
6 packages failed to build:
  • code-server
  • epgstation
  • flexoptix-app
  • lighthouse
  • node2nix
  • photoprism
65 packages built:
  • antennas
  • antora
  • balanceofsatoshis
  • bitwarden-cli
  • breitbandmessung
  • castnow
  • commitlint
  • concurrently
  • create-cycle-app
  • deltachat-desktop
  • discourse
  • discourseAllPlugins
  • emojione
  • fast-cli
  • google-clasp
  • grafana-image-renderer
  • gtop
  • image_optim
  • joplin
  • lessc
  • morgen
  • pm2
  • postcss-cli
  • pyright
  • redoc-cli
  • shepherd
  • slack
  • styx
  • teams
  • theLoungePlugins.plugins.closepms
  • theLoungePlugins.plugins.giphy
  • theLoungePlugins.themes.dracula-official
  • theLoungePlugins.themes.flat-blue
  • theLoungePlugins.themes.flat-dark
  • thelounge
  • uppy-companion
  • vimPlugins.coc-clangd
  • vimPlugins.coc-docker
  • vimPlugins.coc-explorer
  • vimPlugins.coc-go
  • vimPlugins.coc-highlight
  • vimPlugins.coc-json
  • vimPlugins.coc-metals
  • vimPlugins.coc-pairs
  • vimPlugins.coc-pyright
  • vimPlugins.coc-rust-analyzer
  • vimPlugins.coc-sh
  • vimPlugins.coc-sqlfluff
  • vimPlugins.coc-stylelint
  • vimPlugins.coc-tsserver
  • vimPlugins.coc-ultisnips
  • vimPlugins.coc-vetur
  • vimPlugins.coc-yaml
  • vimPlugins.markdown-preview-nvim
  • vscode
  • vscode-extensions.matklad.rust-analyzer
  • vscode-extensions.ms-python.vscode-pylance
  • vscode-fhs
  • vscode-with-extensions
  • vscodium
  • vscodium-fhs
  • wasm-text-gen
  • whalebird
  • wrangler
  • zx

@thiagokokada
Copy link
Contributor

Result of nixpkgs-review pr 199674 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • teleprompter
  • zerobin
3 packages failed to build:
  • code-server
  • flexoptix-app
  • lighthouse
68 packages built:
  • antennas
  • antora
  • balanceofsatoshis
  • bitwarden-cli
  • breitbandmessung
  • castnow
  • commitlint
  • concurrently
  • create-cycle-app
  • deltachat-desktop
  • discourse
  • discourseAllPlugins
  • emojione
  • epgstation
  • fast-cli
  • google-clasp
  • grafana-image-renderer
  • gtop
  • image_optim
  • joplin
  • lessc
  • morgen
  • node2nix
  • photoprism
  • pm2
  • postcss-cli
  • pyright
  • redoc-cli
  • shepherd
  • slack
  • styx
  • teams
  • theLoungePlugins.plugins.closepms
  • theLoungePlugins.plugins.giphy
  • theLoungePlugins.themes.dracula-official
  • theLoungePlugins.themes.flat-blue
  • theLoungePlugins.themes.flat-dark
  • thelounge
  • uppy-companion
  • vimPlugins.coc-clangd
  • vimPlugins.coc-docker
  • vimPlugins.coc-explorer
  • vimPlugins.coc-go
  • vimPlugins.coc-highlight
  • vimPlugins.coc-json
  • vimPlugins.coc-metals
  • vimPlugins.coc-pairs
  • vimPlugins.coc-pyright
  • vimPlugins.coc-rust-analyzer
  • vimPlugins.coc-sh
  • vimPlugins.coc-sqlfluff
  • vimPlugins.coc-stylelint
  • vimPlugins.coc-tsserver
  • vimPlugins.coc-ultisnips
  • vimPlugins.coc-vetur
  • vimPlugins.coc-yaml
  • vimPlugins.markdown-preview-nvim
  • vscode
  • vscode-extensions.matklad.rust-analyzer (vscode-extensions.rust-lang.rust-analyzer)
  • vscode-extensions.ms-python.vscode-pylance
  • vscode-fhs
  • vscode-with-extensions
  • vscodium
  • vscodium-fhs
  • wasm-text-gen
  • whalebird
  • wrangler
  • zx

@thiagokokada thiagokokada merged commit 5edea0d into NixOS:master Nov 6, 2022
@NickCao NickCao mentioned this pull request Nov 8, 2022
13 tasks
runHook postInstall
'';

passthru.tests.photoprism = nixosTests.photoprism;
Copy link
Member

@andir andir Nov 19, 2022

Choose a reason for hiding this comment

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

I think you forgot to add this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, you are correct. Guess this is a leftover from the previous PRs with an attached nixos module.

Thanks you! I'll fix that :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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

Successfully merging this pull request may close these issues.

Package Photoprism
4 participants